Switch from zlib-ng to zlib-rs

zlib-rs provides the same performance as zlib-ng with minedmap, while
reducing the amount of C code and avoiding the external build dependency
on CMake.
This commit is contained in:
Matthias Schiffer 2025-02-28 12:12:58 +01:00
parent 40bc6cd2a9
commit f8c8ca78ba
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C
6 changed files with 21 additions and 27 deletions

View file

@ -42,6 +42,7 @@ bincode = "1.3.3"
clap = { version = "4.1.4", features = ["derive", "wrap_help"] }
enum-map = "2.7.3"
fastnbt = "2.3.2"
flate2 = { version = "1.1.0", features = ["zlib-rs"] }
futures-util = "0.3.28"
git-version = "0.3.5"
humantime = "2.1.0"
@ -67,7 +68,6 @@ tracing-subscriber = "0.3.17"
zstd = "0.13.0"
[features]
default = ["jemalloc-auto", "zlib-ng"]
default = ["jemalloc-auto"]
jemalloc-auto = ["dep:minedmap-default-alloc"]
jemalloc = ["jemalloc-auto", "minedmap-default-alloc/jemalloc"]
zlib-ng = ["minedmap-nbt/zlib-ng"]