-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
41 lines (34 loc) · 1.01 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
[package]
name = "camo-proxy"
version = "0.1.0"
edition = "2021"
license = "AGPL-3.0-or-later"
[lib]
crate-type = ["cdylib", "rlib"]
[features]
default = ["cf", "standalone"]
cf = ["dep:worker", "console_error_panic_hook"]
standalone = ["reqwest", "tokio", "axum", "dotenv"]
[dependencies]
# keep in sync with WORKERS_RS_VERSION in wrangler.toml
worker = { version = "0.0.21", optional = true }
console_error_panic_hook = { version = "0.1.1", optional = true }
tokio = { version = "1", optional = true, features = ["full"] }
axum = { version = "0.7", optional = true, features = ["http2"] }
dotenv = { version = "0.15", optional = true }
reqwest = { version = "0.12", optional = true, default_features = false, features = ["rustls-tls", "http2", "json"] }
cfg-if = "1"
serde_json = "1.0.67"
base64 = "0.22"
futures-util = "0.3.25"
memchr = "2.5.0"
hmac = "0.12.1"
sha1 = "0.10.5"
hex = "0.4.3"
[[bin]]
name = "camo2"
path = "src/bin/standalone.rs"
required-features = ["standalone"]
[profile.release]
lto = true
codegen-units = 1