lzf 1.0.0

DEPRECATED! An implementation of LZF, a very small data compression algorithm
Documentation
1
2
3
4
5
6
7
8
9
10
extern crate lzf;
use std::io::{self, Read, Write};

fn main() {
    let mut contents: Vec<u8> = Vec::new();
    let _ = io::stdin().read_to_end(&mut contents).unwrap();

    let compressed = lzf::compress(&contents[..]).unwrap();
    let _ = io::stdout().write_all(&compressed[..]).unwrap();
}