Crate zstd [−] [src]
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
extern crate zstd; use std::io; fn main() { // Uncompress input and print the result. zstd::stream::copy_decode(io::stdin(), io::stdout()).unwrap(); }Run
Reexports
pub use stream::{Decoder, Encoder, decode_all, encode_all}; |
Modules
block |
Compress and decompress individual blocks. |
dict |
Train a dictionary from various sources. |
stream |
Compress and decompress Zstd streams. |