Configure libgit2 linking behavior
mainThe library requires libgit2 1.9.6 or newer. The libgit2-sys crate handles building the library for you, but you can control how it is linked.
By default, the vendored libgit2 is linked statically if:
- The environment variable
LIBGIT2_NO_VENDOR=1is not set. - AND either the
vendored-libgit2Cargo feature is enabled, or an appropriate version oflibgit2cannot be found on the system.
Note that the LIBGIT2_NO_VENDOR=1 environment variable overrides the Cargo feature.