1#![allow(unexpected_cfgs)]
33# | [`futures::io::AsyncBufRead`](futures_io::AsyncBufRead), [`futures::io::AsyncWrite`](futures_io::AsyncWrite)"
36)]
37#![cfg_attr(
38 not(feature = "futures-io"),
39 doc = "`futures-io` (*inactive*) | `futures::io::AsyncBufRead`, `futures::io::AsyncWrite`"
40)]
41#![cfg_attr(
42 feature = "tokio",
43 doc = "[`tokio`] | [`tokio::io::AsyncBufRead`](::tokio::io::AsyncBufRead), [`tokio::io::AsyncWrite`](::tokio::io::AsyncWrite)"
44)]
45#![cfg_attr(
46 not(feature = "tokio"),
47 doc = "`tokio` (*inactive*) | `tokio::io::AsyncBufRead`, `tokio::io::AsyncWrite`"
48)]
49#, [`BrotliDecoder`](?search=BrotliDecoder)"
62)]
63#![cfg_attr(
64 not(feature = "brotli"),
65 doc = "`brotli` (*inactive*) | `BrotliEncoder`, `BrotliDecoder`"
66)]
67#, [`MbrotliDecoder`](?search=MbrotliDecoder)"
70)]
71#![cfg_attr(
72 not(all(feature = "brotli-mbrotli", async_compression_unstable)),
73 doc = "`brotli-mbrotli` (*unstable*, *inactive*) | `MbrotliEncoder`, `MbrotliDecoder`"
74)]
75#, [`BzDecoder`](?search=BzDecoder)"
78)]
79#![cfg_attr(
80 not(feature = "bzip2"),
81 doc = "`bzip2` (*inactive*) | `BzEncoder`, `BzDecoder`"
82)]
83#, [`DeflateDecoder`](?search=DeflateDecoder)"
86)]
87#![cfg_attr(
88 not(feature = "deflate"),
89 doc = "`deflate` (*inactive*) | `DeflateEncoder`, `DeflateDecoder`"
90)]
91#, [`GzipDecoder`](?search=GzipDecoder)"
94)]
95#![cfg_attr(
96 not(feature = "gzip"),
97 doc = "`gzip` (*inactive*) | `GzipEncoder`, `GzipDecoder`"
98)]
99#, [`Lz4Decoder`](?search=Lz4Decoder)"
102)]
103#![cfg_attr(
104 not(feature = "lz4"),
105 doc = "`lz4` (*inactive*) | `Lz4Encoder`, `Lz4Decoder`"
106)]
107#, [`LzmaDecoder`](?search=LzmaDecoder)"
110)]
111#![cfg_attr(
112 not(feature = "lzma"),
113 doc = "`lzma` (*inactive*) | `LzmaEncoder`, `LzmaDecoder`"
114)]
115#, [`XzDecoder`](?search=XzDecoder)"
118)]
119#![cfg_attr(
120 not(feature = "xz"),
121 doc = "`xz` (*inactive*) | `XzEncoder`, `XzDecoder`"
122)]
123#, [`ZlibDecoder`](?search=ZlibDecoder)"
126)]
127#![cfg_attr(
128 not(feature = "zlib"),
129 doc = "`zlib` (*inactive*) | `ZlibEncoder`, `ZlibDecoder`"
130)]
131#, [`ZstdDecoder`](?search=ZstdDecoder)"
134)]
135#![cfg_attr(
136 not(feature = "zstd"),
137 doc = "`zstd` (*inactive*) | `ZstdEncoder`, `ZstdDecoder`"
138)]
139#, [`MzstdDecoder`](?search=MzstdDecoder)"
142)]
143#![cfg_attr(
144 not(all(feature = "zstd-mzstd", async_compression_unstable)),
145 doc = "`zstd-mzstd` (*unstable*, *inactive*) | `MzstdEncoder`, `MzstdDecoder`"
146)]
147#"
150)]
151#![cfg_attr(
152 not(feature = "deflate64"),
153 doc = "`deflate64` (*inactive*) | (encoder not implemented), `Deflate64Decoder`"
154)]
155#![cfg_attr(docsrs, feature(doc_cfg))]
178#![cfg_attr(not(all), allow(unused))]
179
180#[macro_use]
181mod macros;
182
183mod generic;
185
186#[cfg(feature = "futures-io")]
187pub mod futures;
188#[cfg(feature = "tokio")]
189pub mod tokio;
190
191pub use compression_codecs as codecs;
192pub use compression_core as core;
193
194pub use core::Level;
195
196#[cfg(feature = "zstd")]
197pub use codecs::zstd::params as zstd;
198
199#[cfg(feature = "lz4")]
200pub use codecs::lz4::params as lz4;
201
202#[cfg(feature = "brotli")]
203pub use codecs::brotli::params as brotli;
204
205#[cfg(all(feature = "brotli-mbrotli", async_compression_unstable))]
206pub use codecs::mbrotli::params as mbrotli;
207
208#[cfg(all(feature = "zstd-mzstd", async_compression_unstable))]
209pub use codecs::mzstd::params as mzstd;