Skip to content

Commit 2f6a747

Browse files
committed
Expose gix-pack caching features
1 parent 677de22 commit 2f6a747

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

gix/Cargo.toml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ required-features = ["blocking-network-client"]
2424

2525
[features]
2626

27-
default = ["max-performance-safe", "comfort", "basic", "extras"]
27+
default = ["max-performance-safe", "comfort", "basic", "extras", "gix-pack-object-cache-dynamic"]
2828

2929
#! There are various categories of features which help to optimize performance and build times. `gix` comes with 'batteries included' and everything is
3030
#! enabled as long as it doesn't sacrifice compatibility. Most users will be fine with that but will pay with higher compile times than necessary as they
@@ -304,6 +304,10 @@ progress-tree = ["prodash/progress-tree"]
304304
## Print debugging information about usage of object database caches, useful for tuning cache sizes.
305305
cache-efficiency-debug = ["gix-features/cache-efficiency-debug"]
306306

307+
## Control gix-pack caching behavior
308+
gix-pack-object-cache-dynamic = ["gix-pack/object-cache-dynamic"]
309+
gix-pack-pack-cache-lru-static = ["gix-pack/pack-cache-lru-static"]
310+
gix-pack-pack-cache-lru-dynamic = ["gix-pack/pack-cache-lru-dynamic"]
307311

308312
[dependencies]
309313
gix-utils = { version = "^0.3.0", path = "../gix-utils" }
@@ -325,9 +329,7 @@ gix-hash = { version = "^0.19.0", path = "../gix-hash" }
325329
gix-shallow = { version = "^0.5.0", path = "../gix-shallow" }
326330
gix-object = { version = "^0.50.2", path = "../gix-object" }
327331
gix-actor = { version = "^0.35.4", path = "../gix-actor" }
328-
gix-pack = { version = "^0.60.0", path = "../gix-pack", default-features = false, features = [
329-
"object-cache-dynamic",
330-
] }
332+
gix-pack = { version = "^0.60.0", path = "../gix-pack", default-features = false }
331333
gix-revision = { version = "^0.35.0", path = "../gix-revision", default-features = false }
332334
gix-revwalk = { version = "^0.21.0", path = "../gix-revwalk" }
333335
gix-negotiate = { version = "^0.21.0", path = "../gix-negotiate", optional = true }

0 commit comments

Comments
 (0)