zstd 0.1.12

Rust zstd bindings library.

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.


extern crate zstd;

use std::io;

fn main() {
	// Uncompress input and print the result.
	let mut decoder = zstd::Decoder::new(io::stdin()).unwrap();
	io::copy(&mut decoder, &mut io::stdout()).unwrap();