Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable unnecessary features of zip dependency #1832

Merged

Conversation

kkovaacs
Copy link
Contributor

@kkovaacs kkovaacs commented Sep 3, 2024

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.

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.
Copy link
Contributor

@Oppen Oppen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Excellent catch! 🎉

@Oppen Oppen added the pipelines This PR/issue is exclusively about improving our CI label Sep 3, 2024
Copy link
Collaborator

@pefontana pefontana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one @kkovaacs !

@pefontana pefontana added this pull request to the merge queue Sep 3, 2024
Merged via the queue into lambdaclass:main with commit 294a10b Sep 3, 2024
67 of 71 checks passed
ftheirs pushed a commit to ftheirs/cairo-vm that referenced this pull request Sep 11, 2024
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pipelines This PR/issue is exclusively about improving our CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants