lambdaclass / cairo-vm

cairo-vm is a Rust implementation of the Cairo VM. Cairo (CPU Algebraic Intermediate Representation) is a programming language for writing provable programs, where one party can prove to another that a certain computation was executed correctly without the need for this party to re-execute the same program.
https://lambdaclass.github.io/cairo-vm
Apache License 2.0
522 stars 150 forks source link

Disable unnecessary features of `zip` dependency #1832

Closed kkovaacs closed 2 months ago

kkovaacs commented 2 months ago

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.