-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathCargo.toml
More file actions
142 lines (134 loc) · 4.51 KB
/
Copy pathCargo.toml
File metadata and controls
142 lines (134 loc) · 4.51 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
[workspace]
resolver = "2"
members = [
"crates/trusted-server-adapter-axum",
"crates/trusted-server-adapter-cloudflare",
"crates/trusted-server-adapter-fastly",
"crates/trusted-server-adapter-spin",
"crates/trusted-server-cli",
"crates/trusted-server-core",
"crates/trusted-server-integration-tests",
"crates/trusted-server-js",
"crates/trusted-server-openrtb",
# Manual protobuf codegen tool — a member so it shares workspace settings,
# but no default member or alias builds it. Run it explicitly with `-p`.
"crates/trusted-server-openrtb-codegen",
]
# Viceroy (cargo test-fastly runner) calls `cargo run --bin trusted-server-adapter-fastly`
# against the default-run packages. It must be the sole default member so Cargo can
# locate the binary. Use aliases to test each adapter with the correct target:
# cargo test-fastly → wasm32-wasip1 (Fastly + core, via Viceroy)
# cargo test-axum → native (Axum)
# cargo test-spin → native (Spin host route tests)
default-members = [
"crates/trusted-server-adapter-fastly",
]
[profile.release]
debug = 1
[workspace.package]
authors = []
edition = "2024"
license = "Apache-2.0"
publish = false
version = "0.1.0"
[workspace.dependencies]
anyhow = "1"
async-stream = "0.3"
async-trait = "0.1"
axum = "0.8"
base64 = "0.22"
brotli = "8.0"
build-print = "1.0.1"
bytes = "1.11"
chacha20poly1305 = "0.10"
chrono = "0.4.44"
chromiumoxide = "0.9.1"
clap = { version = "4", features = ["derive"] }
config = "0.15.19"
cookie = "0.18.1"
criterion = { version = "0.5", default-features = false, features = ["cargo_bench_support"] }
derive_more = { version = "2.0", features = ["display", "error"] }
directories = "5"
ed25519-dalek = { version = "2.2", features = ["rand_core"] }
edgezero-adapter-axum = { git = "https://github.com/stackpop/edgezero", tag = "v0.0.4", default-features = false }
edgezero-adapter-cloudflare = { git = "https://github.com/stackpop/edgezero", tag = "v0.0.4", default-features = false }
edgezero-adapter-fastly = { git = "https://github.com/stackpop/edgezero", tag = "v0.0.4", default-features = false }
edgezero-adapter-spin = { git = "https://github.com/stackpop/edgezero", tag = "v0.0.4", default-features = false }
edgezero-cli = { git = "https://github.com/stackpop/edgezero", tag = "v0.0.4" }
edgezero-core = { git = "https://github.com/stackpop/edgezero", tag = "v0.0.4", default-features = false }
env_logger = "0.11"
error-stack = "0.6"
fastly = "0.12"
fern = "0.7.1"
flate2 = "1.1"
futures = "0.3"
glob = "0.3"
getrandom = "0.2"
hex = "0.4.3"
hmac = "0.12.1"
http = "1.4.0"
http-body-util = "0.1"
hyper = "1"
hyper-util = "0.1"
iab_gpp = "0.1"
jose-jwk = "0.1.2"
js-sys = "0.3"
libc = "0.2"
log = "0.4.29"
log-fastly = "0.12"
lol_html = "2.7.2"
matchit = "0.9"
mime = "0.3"
prost-build = "0.13"
rand = "0.8"
rcgen = { version = "0.13", features = ["x509-parser"] }
regex = "1.12.3"
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
rustls = "0.23"
rustls-pemfile = "2"
scraper = "0.24.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0.149"
sha2 = "0.10.9"
simple_logger = "5"
spin-sdk = { version = "~6.0", default-features = false, features = ["http", "key-value", "variables"] }
subtle = "2.6"
temp-env = "0.3.6"
tempfile = "3.24"
testcontainers = { version = "0.25", features = ["blocking"] }
time = "0.3"
tokio = { version = "1.49", features = ["sync", "macros", "io-util", "rt", "time"] }
tokio-rustls = "0.26"
toml = "1.1"
toml_edit = "0.23.10"
tower = "0.4"
trusted-server-core = { path = "crates/trusted-server-core" }
trusted-server-js = { path = "crates/trusted-server-js" }
trusted-server-openrtb = { path = "crates/trusted-server-openrtb" }
url = "2.5.8"
urlencoding = "2.1"
uuid = { version = "1.18", features = ["v4"] }
validator = { version = "0.20", features = ["derive"] }
web-time = "1"
webpki-roots = "1"
which = "8"
worker = { version = "0.8", default-features = false, features = ["http"] }
x509-parser = "0.16"
[workspace.lints.clippy]
# Correctness - Force explicit error handling in production code
unwrap_used = "deny"
expect_used = "allow" # Allow expect with context message
panic = "deny"
# Style
module_name_repetitions = "allow"
must_use_candidate = "warn"
# Pedantic (selective)
doc_markdown = "warn"
missing_errors_doc = "warn"
missing_panics_doc = "warn"
needless_pass_by_value = "warn" # Encourage borrowing over ownership
redundant_closure_for_method_calls = "warn"
# Restriction (selective)
print_stdout = "warn"
print_stderr = "warn"
dbg_macro = "warn"