Skip to content

Set default-features = false on git2 to reduce dependencies and binary size #5

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

Merged
merged 1 commit into from
Jun 18, 2025

Conversation

joshtriplett
Copy link
Contributor

With current git2, this reduces lstr from 144 dependencies to 137, and
from 4.3M to 3.6M.

With rust-lang/git2-rs#1168 merged into upstream
git2-rs, it further reduces lstr to 107 dependencies (though with
negligible additional improvement to binary size as the additional
dependencies were compiled out).

…inary size

With current git2, this reduces lstr from 144 dependencies to 137, and
from 4.3M to 3.6M.

With rust-lang/git2-rs#1168 merged into upstream
git2-rs, it further reduces lstr to 106 dependencies (though with
negligible additional improvement to binary size as the additional
dependencies were compiled out).
@bgreenwell
Copy link
Owner

Thanks @joshtriplett, really learning a lot about Rust with this project!

@bgreenwell bgreenwell merged commit 86d25ec into bgreenwell:main Jun 18, 2025
3 checks passed
bgreenwell added a commit to ZAZPRO/lstr that referenced this pull request Jun 18, 2025
Removed openssl to avoid slight conflict with PR bgreenwell#5
@joshtriplett joshtriplett deleted the git2-features branch June 18, 2025 14:56
@bgreenwell bgreenwell mentioned this pull request Jun 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants