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#"
142)]
143#![cfg_attr(
144 not(feature = "deflate64"),
145 doc = "`deflate64` (*inactive*) | (encoder not implemented), `Deflate64Decoder`"
146)]
147#![cfg_attr(docsrs, feature(doc_cfg))]
167#![cfg_attr(not(all), allow(unused))]
168
169#[macro_use]
170mod macros;
171
172mod generic;
174
175#[cfg(feature = "futures-io")]
176pub mod futures;
177#[cfg(feature = "tokio")]
178pub mod tokio;
179
180pub use compression_codecs as codecs;
181pub use compression_core as core;
182
183pub use core::Level;
184
185#[cfg(feature = "zstd")]
186pub use codecs::zstd::params as zstd;
187
188#[cfg(feature = "lz4")]
189pub use codecs::lz4::params as lz4;
190
191#[cfg(feature = "brotli")]
192pub use codecs::brotli::params as brotli;
193
194#[cfg(all(feature = "brotli-mbrotli", async_compression_unstable))]
195pub use codecs::mbrotli::params as mbrotli;