Skip to content

Commit 294a10b

Browse files
authored
Disable unnecessary features of zip (#1832)
We've discovered that using the `cairo-vm` crate in our projects brings in a lot of unnecessary dependencies and in the end leads to our binary being linked with the `libbz2` library. Turns out that neither of these is actually required and this happens because the `zip` crate has a large number of features enabled by default. This change disables all `zip` features except `deflate` which the code actually uses.
1 parent 59953d2 commit 294a10b

File tree

2 files changed

+4
-168
lines changed

2 files changed

+4
-168
lines changed

Cargo.lock

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

vm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ test_utils = ["std", "dep:arbitrary", "starknet-types-core/arbitrary", "starknet
3737
extensive_hints = []
3838

3939
[dependencies]
40-
zip = {version = "0.6.6", optional = true }
40+
zip = {version = "0.6.6", optional = true, default-features = false, features = ["deflate"]}
4141
num-bigint = { workspace = true }
4242
rand = { workspace = true }
4343
num-traits = { workspace = true }

0 commit comments

Comments
 (0)