Debian Codegraph @

debian/missing-sources/flate2/Cargo.toml.orig

raw
1 [package]
2 name = "flate2"
3 authors = ["Alex Crichton <[email protected]>", "Josh Triplett <[email protected]>"]
4 version = "1.1.8"
5 edition = "2018"
6 license = "MIT OR Apache-2.0"
7 readme = "README.md"
8 rust-version = "1.67.0"
9 keywords = ["gzip", "deflate", "zlib", "zlib-ng", "encoding"]
10 categories = ["compression", "api-bindings"]
11 repository = "https://github.com/rust-lang/flate2-rs"
12 homepage = "https://github.com/rust-lang/flate2-rs"
13 documentation = "https://docs.rs/flate2"
14 description = """
15 DEFLATE compression and decompression exposed as Read/BufRead/Write streams.
16 Supports miniz_oxide and multiple zlib implementations. Supports zlib, gzip,
17 and raw deflate streams.
18 """
19 exclude = [".*"]
20
21 [dependencies]
22 libz-sys = { version = "1.1.20", optional = true, default-features = false }
23 libz-ng-sys = { version = "1.1.16", optional = true }
24 # this matches the default features, but we don't want to depend on the default features staying the same
25 zlib-rs = { version = "0.5.5", optional = true, default-features = false, features = ["std", "rust-allocator"] }
26 cloudflare-zlib-sys = { version = "0.3.6", optional = true }
27 ## This implementation uses only safe Rust code and doesn't require a C compiler.
28 ## It provides good performance for most use cases while being completely portable.
29 miniz_oxide = { version = "0.8.5", optional = true, default-features = false, features = ["with-alloc", "simd"] }
30 crc32fast = "1.2.0"
31 document-features = { version = "0.2", optional = true }
32
33 [target.'cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))'.dependencies]
34 miniz_oxide = { version = "0.8.5", default-features = false, features = ["with-alloc", "simd"] }
35
36 [dev-dependencies]
37 futures = { version = "0.3", default-features = false }
38 rand = "0.9"
39 quickcheck = { version = "1.0", default-features = false }
40
41 [features]
42 ## The default backend using pure Rust implementation via miniz_oxide.
43 ## This provides a safe, portable compression implementation without requiring a C compiler.
44 default = ["rust_backend"]
45
46 #! ### User-Facing Backend Features
47 #! Choose one of these features to select the compression backend.
48 #! 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.
50
51 ## Use the zlib-rs backend, a pure Rust rewrite of zlib.
52 ## This is the fastest backend overall, providing excellent performance with some `unsafe` code.
53 ## It does not require a C compiler but uses `unsafe` Rust for optimization.
54 zlib-rs = ["any_zlib", "dep:zlib-rs"]
55
56 ## Use the pure Rust `miniz_oxide` backend (default).
57 ## This implementation uses only safe Rust code and doesn't require a C compiler.
58 ## It provides good performance for most use cases while being completely portable.
59 ##
60 ## Note that this feature at some point may be switched to use `zlib-rs` instead.
61 rust_backend = ["miniz_oxide", "any_impl"]
62
63 ## Use the system's installed zlib library.
64 ## This is useful when you need compatibility with other C code that uses zlib,
65 ## or when you want to use the system-provided zlib for consistency.
66 zlib = ["any_c_zlib", "libz-sys"]
67
68 ## Use the system's installed zlib library with default features enabled.
69 ## Similar to `zlib` but enables additional features from libz-sys.
70 zlib-default = ["any_c_zlib", "libz-sys/default"]
71
72 ## Use zlib-ng in zlib-compat mode via libz-sys.
73 ## This provides zlib-ng's performance improvements while maintaining compatibility.
74 ## Note: If any crate in your dependency graph uses stock zlib, you'll get stock zlib instead.
75 ## For guaranteed zlib-ng, use the `zlib-ng` feature.
76 ## When using this feature, if any crate in your dependency graph explicitly requests stock zlib,
77 ## or uses libz-sys directly without `default-features = false`, you'll get stock zlib rather than zlib-ng.
78 ## See [the libz-sys README](https://github.com/rust-lang/libz-sys/blob/main/README.md) for details.
79 ## To avoid that, use the `"zlib-ng"` feature instead.
80
81 zlib-ng-compat = ["zlib", "libz-sys/zlib-ng"]
82
83 ## Use the high-performance zlib-ng library directly.
84 ## This typically provides better performance than stock zlib and works even when
85 ## other dependencies use zlib. Requires a C compiler.
86 zlib-ng = ["any_c_zlib", "libz-ng-sys"]
87
88 ## Use Cloudflare's optimized zlib implementation.
89 ## This provides better performance than stock zlib on x86-64 (with SSE 4.2) and ARM64 (with NEON & CRC).
90 ## * ⚠ Does not support 32-bit CPUs and is incompatible with mingw.
91 ## * ⚠ May cause conflicts if other crates use different zlib versions.
92 cloudflare_zlib = ["any_c_zlib", "cloudflare-zlib-sys"]
93
94 ## Deprecated alias for `rust_backend`, provided for backwards compatibility.
95 ## Use `rust_backend` instead.
96 miniz-sys = ["rust_backend"]
97
98 #! ### Internal Features
99 #! These features are used internally for backend selection and should not be enabled directly by users.
100 #! They are documented here to aid with maintenance.
101
102 ## **Internal:** Marker feature indicating that any zlib-based C backend is enabled.
103 ## This is automatically enabled by `zlib-rs`, `zlib`, `zlib-ng`, `zlib-ng-compat`, and `cloudflare_zlib`.
104 ## Do not enable this feature directly; instead, choose a specific backend feature.
105 any_zlib = ["any_impl"]
106
107 ## **Internal:** Marker feature indicating that any C based fully zlib compatible backend is enabled.
108 ## This is automatically enabled by `zlib`, `zlib-ng`, `zlib-ng-compat`, and `cloudflare_zlib`.
109 ## Do not enable this feature directly; instead, choose a specific backend feature.
110 any_c_zlib = ["any_zlib"]
111
112 ## **Internal:** Marker feature indicating that any compression backend is enabled.
113 ## This is automatically enabled by all backend features to ensure at least one implementation is available.
114 ## Do not enable this feature directly; instead, choose a specific backend feature.
115 any_impl = []
116
117 [package.metadata.docs.rs]
118 all-features = true
119 rustdoc-args = ["--cfg", "docsrs"]