@@ -23,7 +23,6 @@ libz-sys = { version = "1.1.20", optional = true, default-features = false }
2323libz-ng-sys = { version = " 1.1.16" , optional = true }
2424# this matches the default features, but we don't want to depend on the default features staying the same
2525zlib-rs = { version = " 0.6.0" , optional = true , default-features = false , features = [" std" , " rust-allocator" ] }
26- cloudflare-zlib-sys = { version = " 0.3.6" , optional = true }
2726# # This implementation uses only safe Rust code and doesn't require a C compiler.
2827# # It provides good performance for most use cases while being completely portable.
2928miniz_oxide = { version = " 0.8.5" , optional = true , default-features = false , features = [" with-alloc" , " simd" ] }
@@ -46,7 +45,7 @@ default = ["rust_backend"]
4645# ! ### User-Facing Backend Features
4746# ! Choose one of these features to select the compression backend.
4847# ! Only one backend should be enabled at a time, or else one will see an unstable order which is currently
49- # ! `zlib-ng`, `zlib-rs`, `cloudflare_zlib`, ` miniz_oxide` and which may change at any time.
48+ # ! `zlib-ng`, `zlib-rs`, `miniz_oxide` and which may change at any time.
5049
5150# # Use the pure Rust `miniz_oxide` backend (default).
5251# # This implementation uses only safe Rust code and doesn't require a C compiler.
@@ -88,11 +87,9 @@ zlib-ng-compat = ["zlib", "libz-sys/zlib-ng", "dep:crc32fast"]
8887# # other dependencies use zlib. Requires a C compiler.
8988zlib-ng = [" any_c_zlib" , " libz-ng-sys" , " dep:crc32fast" ]
9089
91- # # Use Cloudflare's optimized zlib implementation.
92- # # This provides better performance than stock zlib on x86-64 (with SSE 4.2) and ARM64 (with NEON & CRC).
93- # # * ⚠ Does not support 32-bit CPUs and is incompatible with mingw.
94- # # * ⚠ May cause conflicts if other crates use different zlib versions.
95- cloudflare_zlib = [" any_c_zlib" , " cloudflare-zlib-sys" , " dep:crc32fast" ]
90+ # # Cloudflare-zlib is no longer supported.
91+ # # Falls back to `libz-sys`, but we recommend switching to `zlib-rs` instead.
92+ cloudflare_zlib = [" zlib" ]
9693
9794# # Deprecated alias for `rust_backend`, provided for backwards compatibility.
9895# # Use `rust_backend` instead.
@@ -103,12 +100,12 @@ miniz-sys = ["rust_backend"]
103100# ! They are documented here to aid with maintenance.
104101
105102# # **Internal:** Marker feature indicating that any zlib-based C backend is enabled.
106- # # This is automatically enabled by `zlib-rs`, `zlib`, `zlib-ng`, `zlib-ng-compat`, and `cloudflare_zlib `.
103+ # # This is automatically enabled by `zlib-rs`, `zlib`, `zlib-ng`, and `zlib-ng-compat`.
107104# # Do not enable this feature directly; instead, choose a specific backend feature.
108105any_zlib = [" any_impl" ]
109106
110107# # **Internal:** Marker feature indicating that any C based fully zlib compatible backend is enabled.
111- # # This is automatically enabled by `zlib`, `zlib-ng`, `zlib-ng-compat`, and `cloudflare_zlib `.
108+ # # This is automatically enabled by `zlib`, `zlib-ng`, and `zlib-ng-compat`.
112109# # Do not enable this feature directly; instead, choose a specific backend feature.
113110any_c_zlib = [" any_zlib" ]
114111
0 commit comments