Expand description
Rust binding to the zstd library.
This crate provides:
- An encoder to compress data using zstd and send the output to another write.
- A decoder to read input data from a
Read
and decompress it. - Convenient functions for common tasks.
§Example
use std::io;
// Uncompress input and print the result.
zstd::stream::copy_decode(io::stdin(), io::stdout()).unwrap();
Re-exports§
pub use crate::stream::decode_all;
pub use crate::stream::encode_all;
pub use crate::stream::Decoder;
pub use crate::stream::Encoder;
pub use zstd_safe;
Modules§
- bulk
- Compress and decompress data in bulk.
- dict
- Train a dictionary from various sources.
- stream
- Compress and decompress Zstd streams.
Constants§
- DEFAULT_
COMPRESSION_ LEVEL - Default compression level.
Functions§
- compression_
level_ range - The accepted range of compression levels.