Skip to content

Commit e44e562

Browse files
committed
Set default-features = false on git2 to reduce dependencies and binary size
With current git2, this reduces lstr from 144 dependencies to 137, and from 4.3M to 3.6M. With rust-lang/git2-rs#1168 merged into upstream git2-rs, it further reduces lstr to 107 dependencies (though with negligible additional improvement to binary size as the additional dependencies were compiled out).
1 parent 5f07ada commit e44e562

File tree

2 files changed

+6
-42
lines changed

2 files changed

+6
-42
lines changed

Cargo.lock

Lines changed: 4 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ anyhow = "1.0"
1616
colored = "2.1.0"
1717
clap = { version = "4.5.7", features = ["derive"] }
1818
crossterm = "0.27.0"
19-
git2 = "0.19.0"
19+
git2 = { version = "0.20.2", default-features = false }
2020
ignore = "0.4.22"
2121
ratatui = "0.27.0"
2222
rayon = "1.10.0"
@@ -25,4 +25,4 @@ rayon = "1.10.0"
2525
[dev-dependencies]
2626
assert_cmd = "2.0"
2727
predicates = "3.1"
28-
tempfile = "3.10"
28+
tempfile = "3.10"

0 commit comments

Comments
 (0)