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#, [`BzDecoder`](?search=BzDecoder)"
70)]
71#![cfg_attr(
72 not(feature = "bzip2"),
73 doc = "`bzip2` (*inactive*) | `BzEncoder`, `BzDecoder`"
74)]
75#, [`DeflateDecoder`](?search=DeflateDecoder)"
78)]
79#![cfg_attr(
80 not(feature = "deflate"),
81 doc = "`deflate` (*inactive*) | `DeflateEncoder`, `DeflateDecoder`"
82)]
83#, [`GzipDecoder`](?search=GzipDecoder)"
86)]
87#![cfg_attr(
88 not(feature = "gzip"),
89 doc = "`gzip` (*inactive*) | `GzipEncoder`, `GzipDecoder`"
90)]
91#, [`Lz4Decoder`](?search=Lz4Decoder)"
94)]
95#![cfg_attr(
96 not(feature = "lz4"),
97 doc = "`lz4` (*inactive*) | `Lz4Encoder`, `Lz4Decoder`"
98)]
99#, [`LzmaDecoder`](?search=LzmaDecoder)"
102)]
103#![cfg_attr(
104 not(feature = "lzma"),
105 doc = "`lzma` (*inactive*) | `LzmaEncoder`, `LzmaDecoder`"
106)]
107#, [`XzDecoder`](?search=XzDecoder)"
110)]
111#![cfg_attr(
112 not(feature = "xz"),
113 doc = "`xz` (*inactive*) | `XzEncoder`, `XzDecoder`"
114)]
115#, [`ZlibDecoder`](?search=ZlibDecoder)"
118)]
119#![cfg_attr(
120 not(feature = "zlib"),
121 doc = "`zlib` (*inactive*) | `ZlibEncoder`, `ZlibDecoder`"
122)]
123#, [`ZstdDecoder`](?search=ZstdDecoder)"
126)]
127#![cfg_attr(
128 not(feature = "zstd"),
129 doc = "`zstd` (*inactive*) | `ZstdEncoder`, `ZstdDecoder`"
130)]
131#"
134)]
135#![cfg_attr(
136 not(feature = "deflate64"),
137 doc = "`deflate64` (*inactive*) | (encoder not implemented), `Deflate64Decoder`"
138)]
139#![cfg_attr(docsrs, feature(doc_auto_cfg, doc_cfg))]
147#![warn(
148 missing_docs,
149 rust_2018_idioms,
150 missing_copy_implementations,
151 missing_debug_implementations
152)]
153#![cfg_attr(not(all), allow(unused))]
154
155#[macro_use]
156mod macros;
157
158#[cfg(feature = "futures-io")]
159pub mod futures;
160#[cfg(feature = "tokio")]
161pub mod tokio;
162
163pub use compression_codecs as codecs;
164pub use compression_core as core;
165
166pub use core::Level;
167
168#[cfg(feature = "zstd")]
169pub use codecs::zstd::params as zstd;
170
171#[cfg(feature = "lz4")]
172pub use codecs::lz4::params as lz4;
173
174#[cfg(feature = "brotli")]
175pub use codecs::brotli::params as brotli;