Skip to content

Commit 0c2e401

Browse files
authored
Remove unused dependencies and disable unnecessary test targets (#615)
Drop handlebars, pin-project-lite, tokio-test, tokio-stream from the workspace. Remove log-fastly from trusted-server-core, and serde, serde_json, trusted-server-js from the Fastly adapter. Promote trusted-server-core to a workspace dependency. Disable doctests on trusted-server-js and trusted-server-openrtb crates, and disable the test target on trusted-server-js since it has no Rust tests.
1 parent 0592bf1 commit 0c2e401

6 files changed

Lines changed: 7 additions & 38 deletions

File tree

Cargo.lock

Lines changed: 0 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ fastly = "0.11.12"
6565
fern = "0.7.1"
6666
flate2 = "1.1"
6767
futures = "0.3"
68-
handlebars = "6.4.0"
6968
hex = "0.4.3"
7069
hmac = "0.12.1"
7170
http = "1.4.0"
@@ -75,7 +74,6 @@ log = "0.4.29"
7574
log-fastly = "0.11.12"
7675
lol_html = "2.7.2"
7776
matchit = "0.9"
78-
pin-project-lite = "0.2"
7977
rand = "0.8"
8078
regex = "1.12.3"
8179
serde = { version = "1.0", features = ["derive"] }
@@ -84,8 +82,8 @@ sha2 = "0.10.9"
8482
subtle = "2.6"
8583
temp-env = "0.3.6"
8684
tokio = { version = "1.49", features = ["sync", "macros", "io-util", "rt", "time"] }
87-
tokio-test = "0.4"
8885
toml = "1.0"
86+
trusted-server-core = { path = "crates/trusted-server-core" }
8987
url = "2.5.8"
9088
urlencoding = "2.1"
9189
uuid = { version = "1.18", features = ["v4"] }

crates/js/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ build = "build.rs"
1010
workspace = true
1111

1212
[lib]
13+
doctest = false
1314
name = "trusted_server_js"
1415
path = "src/lib.rs"
16+
test = false
1517

1618
[package.metadata]
1719
repository = "https://example.invalid/trusted-server"

crates/openrtb/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ edition = "2024"
66
publish = false
77
license = "Apache-2.0"
88

9+
[lib]
10+
doctest = false
11+
912
[lints]
1013
workspace = true
1114

crates/trusted-server-adapter-fastly/Cargo.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ fern = { workspace = true }
1717
futures = { workspace = true }
1818
log = { workspace = true }
1919
log-fastly = { workspace = true }
20-
serde = { workspace = true }
21-
serde_json = { workspace = true }
22-
trusted-server-core = { path = "../trusted-server-core" }
23-
trusted-server-js = { path = "../js" }
20+
trusted-server-core = {workspace = true}
2421

2522
[dev-dependencies]
2623
edgezero-core = { workspace = true, features = ["test-utils"] }

crates/trusted-server-core/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,8 @@ iab_gpp = { workspace = true }
3232
jose-jwk = { workspace = true }
3333
log = { workspace = true }
3434
rand = { workspace = true }
35-
log-fastly = { workspace = true }
3635
lol_html = { workspace = true }
3736
matchit = { workspace = true }
38-
pin-project-lite = { workspace = true }
3937
regex = { workspace = true }
4038
serde = { workspace = true }
4139
serde_json = { workspace = true }
@@ -72,7 +70,6 @@ default = []
7270
criterion = { workspace = true }
7371
edgezero-core = { workspace = true, features = ["test-utils"] }
7472
temp-env = { workspace = true }
75-
tokio-test = { workspace = true }
7673

7774
[[bench]]
7875
name = "consent_decode"

0 commit comments

Comments
 (0)