Skip to content

Commit 34d3510

Browse files
committed
feat!: upgrade to gix v0.54 (from v0.50)
This may produce smaller binaries. Further, no performance option is set anymore to leave this in the hands of the final binary.
1 parent 922e962 commit 34d3510

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ required-features = ["max-performance"]
2626

2727
[features]
2828
default = ["http-curl"]
29-
## Configure `git-repository` to use maximum performance.
29+
## Configure `gix` to use maximum performance, but with greater compatibility.
30+
max-performance-safe = ["gix/max-performance-safe"]
31+
## Configure `gix` to use maximum performance.
3032
max-performance = ["gix/max-performance"]
3133
## Use libcurl for all http/https interactions. Supports many git http settings, but needs a C toolchain to build.
3234
http-curl = ["gix/blocking-http-transport-curl"]
@@ -35,7 +37,7 @@ http-reqwest = ["gix/blocking-http-transport-reqwest-rust-tls"]
3537

3638

3739
[dependencies]
38-
gix = { version = "0.50.0", default-features = false, features = ["max-performance-safe", "blocking-network-client" ] }
40+
gix = { version = "0.54.1", default-features = false, features = ["blocking-network-client", "blob-diff", "revision"] }
3941
serde = { version = "1", features = ["std", "derive"] }
4042
hex = { version = "0.4.3", features = ["serde"] }
4143
smartstring = { version = "1.0.1", features = ["serde"] }

src/index/diff/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ impl Index {
113113
order: Order,
114114
) -> Result<(Vec<Change>, gix::hash::ObjectId), Error>
115115
where
116-
P: gix::Progress,
116+
P: gix::NestedProgress,
117117
P::SubProgress: 'static,
118118
{
119119
let repo = &self.repo;
@@ -362,7 +362,7 @@ impl Index {
362362
order: Order,
363363
) -> Result<Vec<Change>, Error>
364364
where
365-
P: gix::Progress,
365+
P: gix::NestedProgress,
366366
P::SubProgress: 'static,
367367
{
368368
let (changes, to) = self.peek_changes_with_options(progress, should_interrupt, order)?;

src/index/init.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ impl Index {
4646
CloneOptions { url }: CloneOptions,
4747
) -> Result<Index, Error>
4848
where
49-
P: gix::Progress,
49+
P: gix::NestedProgress,
5050
P::SubProgress: 'static,
5151
{
5252
let path = path.as_ref();

0 commit comments

Comments
 (0)