lzip-sys 0.1.4+1.13

Bindings to lzlib for lzip compression and decompression exposed as Reader/Writer streams.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::env;

extern crate cc;

fn main() {
    let out_dir = env::var("OUT_DIR").unwrap();

    cc::Build::new()
        .file("lzlib-1.13/lzlib.c")
        .out_dir(&out_dir)
        .compile("liblz.a");

    println!("cargo:root={}", out_dir);

    // Tell cargo to tell rustc to link the system lzlib shared library.
    println!("cargo:rustc-link-lib=lz");
}