Crate zstd
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
Readand 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();
Modules
Structs
Functions
- compression_level_range The accepted range of compression levels.
-
decode_all
Decompress from the given source as if using a
Decoder. -
encode_all
Compress all data from the given source as if using an
Encoder.