Use zlib-ng backend for flate2 by default

Still allow disabling the feature to avoid the cmake dependency.
This commit is contained in:
Matthias Schiffer 2023-03-03 20:00:03 +01:00
parent d5406851b4
commit e6e1f55fe9
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C
3 changed files with 24 additions and 1 deletions

20
Cargo.lock generated
View file

@ -105,6 +105,15 @@ dependencies = [
"os_str_bytes", "os_str_bytes",
] ]
[[package]]
name = "cmake"
version = "0.1.49"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "db34956e100b30725f2eb215f90d4871051239535632f84fea3bc92722c66b7c"
dependencies = [
"cc",
]
[[package]] [[package]]
name = "crc32fast" name = "crc32fast"
version = "1.3.2" version = "1.3.2"
@ -180,6 +189,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a8a2db397cb1c8772f31494cb8917e48cd1e64f0fa7efac59fbd741a0a8ce841" checksum = "a8a2db397cb1c8772f31494cb8917e48cd1e64f0fa7efac59fbd741a0a8ce841"
dependencies = [ dependencies = [
"crc32fast", "crc32fast",
"libz-ng-sys",
"miniz_oxide", "miniz_oxide",
] ]
@ -241,6 +251,16 @@ version = "0.2.139"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79" checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79"
[[package]]
name = "libz-ng-sys"
version = "1.1.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4399ae96a9966bf581e726de86969f803a81b7ce795fcd5480e640589457e0f2"
dependencies = [
"cmake",
"libc",
]
[[package]] [[package]]
name = "linux-raw-sys" name = "linux-raw-sys"
version = "0.1.4" version = "0.1.4"

View file

@ -19,3 +19,7 @@ itertools = "0.10.5"
num-integer = "0.1.45" num-integer = "0.1.45"
serde = "1.0.152" serde = "1.0.152"
zstd = "0.12.3" zstd = "0.12.3"
[features]
default = ["zlib-ng"]
zlib-ng = ["flate2/zlib-ng"]

View file

@ -5,4 +5,3 @@
- To check: - To check:
- fastnbt borrow - fastnbt borrow
- fastnbt from_reader - fastnbt from_reader
- flate2 backends