Skip to content

Commit 1ba9488

Browse files
Byronjoshtriplett
andauthored
feat: max-performance-zlib-ng-compat flag
This allows users to use zlib-ng-compat without having to add a dependency on gix-features, and without having to keep track of which options max-performance depends on other than max-performance-safe. Essentially it's for use in projects that also include `zlib` in their builds, which would fail to build with `max-performance`, but who otherwise don't need `max-performance-safe`. Co-authored-by: Josh Triplett <josh@joshtriplett.org>
2 parents 79fd006 + cfb06ec commit 1ba9488

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

gix/Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,14 @@ pack-cache-lru-dynamic = ["gix-pack/pack-cache-lru-dynamic"]
171171
## Note that some platforms might suffer from compile failures, which is when `max-performance-safe` should be used.
172172
max-performance = [ "max-performance-safe", "gix-features/zlib-ng", "fast-sha1" ]
173173

174+
## Activate other features that maximize performance, like usage of threads, `zlib-ng-compat`, and access to caching in object databases.
175+
## Note that some platforms might suffer from compile failures, which is when `max-performance-safe` should be used.
176+
## Unlike `max-performance`, `max-performance-zlib-ng-compat` uses zlib-ng via
177+
## libz-sys in zlib-ng-compat mode, which is useful when building with other
178+
## software that needs zlib, or to avoid linking conflicts when using other
179+
## software that uses zlib-ng-compat.
180+
max-performance-zlib-ng-compat = [ "max-performance-safe", "gix-features/zlib-ng-compat", "fast-sha1" ]
181+
174182
## If enabled, use assembly versions of sha1 on supported platforms.
175183
## This might cause compile failures as well which is why it can be turned off separately.
176184
fast-sha1 = [ "gix-features/fast-sha1" ]

0 commit comments

Comments
 (0)