Skip to content

Commit 703f6a0

Browse files
eth3lbertTurbo87
authored andcommitted
tarball: Avoid flate2 and tar for release builds
1 parent 25cf36b commit 703f6a0

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"] }
@@ -27,8 +27,10 @@ futures-util = "=0.3.31"
2727
anyhow = "=1.0.93"
2828
claims = "=0.8.0"
2929
clap = { version = "=4.5.21", features = ["derive", "unicode", "wrap_help"] }
30+
flate2 = { version = "=1.0.35" }
3031
indicatif = { version = "=0.17.9", features = ["rayon"] }
3132
insta = "=1.41.1"
3233
rayon = "=1.10.0"
34+
tar = { version = "=0.4.43" }
3335
tracing-subscriber = { version = "=0.3.18", features = ["env-filter"] }
3436
walkdir = "=2.5.0"

0 commit comments

Comments
 (0)