Crate features / git2
Feature flags · git2 0.21.0 · from crates.io 2026-10-24
git2 features: what each one does, and the line to copy
Short answergit2 0.21.0 has 8 features. Nothing is on by default: turn on what you use.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
cred | dep:url | |
https | libgit2-sys/https, openssl-sys, openssl-probe, cred | |
ssh | libgit2-sys/ssh, cred | |
unstable | nothing else (a switch the code checks) | |
unstable-sha256 | libgit2-sys/unstable-sha256 | |
vendored-libgit2 | libgit2-sys/vendored | |
vendored-openssl | openssl-sys/vendored, libgit2-sys/vendored-openssl | |
zlib-ng-compat | libgit2-sys/zlib-ng-compat |
dep:x turns on the optional dependency x; x/y turns on feature y of dependency x (with ?, only if x is already on).
More on git2
Real downloads, dependents and alternatives: git2 crate data (194.8K real downloads a day, 2,047 dependents).
Security record: git2 advisories.
docs.rs feature list · crates.io · license MIT OR Apache-2.0 · edition 2021
Up next
Before you depend on itgit2 crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?