Kaynağa Gözat

Merge pull request #233 from gierens/expose-vendored-libgit2

Expose vendored libgit2
Christina Sørensen 2 yıl önce
ebeveyn
işleme
0d118d3bfa
2 değiştirilmiş dosya ile 4 ekleme ve 4 silme
  1. 1 4
      Cargo.toml
  2. 3 0
      devtools/deb-package.sh

+ 1 - 4
Cargo.toml

@@ -64,10 +64,6 @@ features = ["format"]
 version = "0.18"
 optional = true
 default-features = false
-# This builds libgit2 into the binary to avoid dependency problems on systems
-# that don't have the required version of libgit2 yet.
-# See: https://github.com/eza-community/eza/pull/192
-features = ["vendored-libgit2"]
 
 [target.'cfg(target_os = "linux")'.dependencies]
 proc-mounts = "0.3"
@@ -83,6 +79,7 @@ default-features = false
 default = [ "git" ]
 git = [ "git2" ]
 vendored-openssl = ["git2/vendored-openssl"]
+vendored-libgit2 = ["git2/vendored-libgit2"]
 
 
 # make dev builds faster by excluding debug symbols

+ 3 - 0
devtools/deb-package.sh

@@ -17,6 +17,9 @@ ARCH="amd64"
 DEB_TMP_DIR="${NAME}_${VERSION}_${ARCH}"
 DEB_PACKAGE="${NAME}_${VERSION}_${ARCH}.deb"
 
+cargo build --release --features vendored-libgit2
+just man
+
 read -r -d '' DEB_CONTROL << EOM
 Package: ${NAME}
 Version: ${VERSION}