1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-10-10 13:53:58 +01:00

feat(cargo): add vendored-libgit2 feature (#3426)

* feat(cargo): add vendored-libgit2 feature

this is done to resolve the issues when the host system doesn't have
`libgit2` installed or if its incompatible with the version we expect

see: sharkdp/bat/issues/2939

* docs(changelog): add vendored libgit2 entry
This commit is contained in:
0x61nas
2025-10-08 20:48:25 +03:00
committed by GitHub
parent 0e931aadde
commit 1838e25d2f
2 changed files with 3 additions and 2 deletions

View File

@@ -36,6 +36,7 @@
- Update console dependency to 0.16, see #3351 (@musicinmybrain)
- Fixed some typos #3244 (@ssbarnea)
- Update onig_sys dependency to 69.9.1 to fix a gcc build failure #3400 (@CosmicHorrorDev)
- Add a cargo feature (`vendored-libgit2`) to build with vendored libgit2 version without depending on the system's one #3426 (@0x61nas)
## Syntaxes

View File

@@ -14,13 +14,12 @@ edition = '2021'
rust-version = "1.74"
[features]
default = ["application"]
default = ["application", "git"]
# Feature required for bat the application. Should be disabled when depending on
# bat as a library.
application = [
"bugreport",
"build-assets",
"git",
"minimal-application",
]
# Mainly for developers that want to iterate quickly
@@ -33,6 +32,7 @@ minimal-application = [
"wild",
]
git = ["git2"] # Support indicating git modifications
vendored-libgit2 = ["git2/vendored-libgit2"]
paging = [ "shell-words", "grep-cli", "minus"] # Support applying a pager on the output
lessopen = ["execute"] # Support $LESSOPEN preprocessor
build-assets = ["syntect/yaml-load", "syntect/plist-load", "regex", "walkdir"]