Cargo Features
libgit2-sys has no features set by default.
[dependencies]
libgit2-sys = { version = "0.17.0+1.8.1", features = ["ssh", "https", "vendored", "vendored-openssl", "zlib-ng-compat"] }
- ssh = libssh2-sys
- https = openssl-sys
-
Affects
libgit2-sys::openssl_init
… - ssh_key_from_memory vendored
- vendored-openssl
-
Enables vendored of openssl-sys
- zlib-ng-compat
-
Enables zlib-ng-compat of optional libssh2-sys and zlib-ng of libz-sys
libz-sys:
(Omit the libc feature if you don't require the corresponding functions.)
This allows higher-level crates depending on your library to opt into zlib-ng if desired.
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- libssh2-sys ssh?
- openssl-sys unix https? vendored-openssl?