Skip to content

Commit a7597ea

Browse files
committed
tarball: Avoid flate2 and tar for release builds
1 parent 9d94cc1 commit a7597ea

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

crates/crates_io_tarball/Cargo.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ edition = "2021"
88
workspace = true
99

1010
[features]
11-
builder = []
11+
builder = ["dep:flate2", "dep:tar"]
1212

1313
[dependencies]
1414
cargo-manifest = "=0.16.1"
15-
flate2 = "=1.0.35"
15+
flate2 = { version = "=1.0.35", optional = true }
1616
serde = { version = "=1.0.215", features = ["derive"] }
1717
serde_json = "=1.0.133"
18-
tar = "=0.4.43"
18+
tar = { version = "=0.4.43", optional = true }
1919
thiserror = "=2.0.3"
2020
tracing = "=0.1.40"
2121
tokio = { version = "=1.41.1", features = ["io-util", "macros", "rt-multi-thread"] }
@@ -32,3 +32,5 @@ insta = "=1.41.1"
3232
rayon = "=1.10.0"
3333
tracing-subscriber = { version = "=0.3.18", features = ["env-filter"] }
3434
walkdir = "=2.5.0"
35+
flate2 = { version = "=1.0.35" }
36+
tar = { version = "=0.4.43" }

0 commit comments

Comments
 (0)