Skip to content

Commit 7c722f7

Browse files
committed
Auto merge of #13134 - arlosi:vendor-libgit2, r=ehuss
`all-static` feature should include `vendored-libgit2` Cargo has an `all-static` feature which is supposed to statically link dependencies for distributing. However, it doesn't include `libgit2`. If the system has a compatible version of `libgit2` and `pkg-config` installed, then the `all-static` build will still use the system `libgit2`.
2 parents 73eeb84 + 1a90797 commit 7c722f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ doc = false
246246
vendored-openssl = ["openssl/vendored"]
247247
vendored-libgit2 = ["libgit2-sys/vendored"]
248248
# This is primarily used by rust-lang/rust distributing cargo the executable.
249-
all-static = ['vendored-openssl', 'curl/static-curl', 'curl/force-system-lib-on-osx']
249+
all-static = ['vendored-openssl', 'curl/static-curl', 'curl/force-system-lib-on-osx', 'vendored-libgit2']
250250

251251
[lints]
252252
workspace = true

0 commit comments

Comments
 (0)