blosc-sys 1.7.0

Native bindings to the blocking, shuffling and loss-less compression library that can be faster than `memcpy()`
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
extern crate cmake;

fn main() {
    let dst = cmake::Config::new("c-blosc")
        .cflag("-fPIC")
        .define("BUILD_TESTS", "OFF")
        .define("BUILD_BENCHMARKS", "OFF")
        .define("BUILD_STATIC", "ON")
        .define("PREFER_EXTERNAL_LZ4", "OFF")
        .define("PREFER_EXTERNAL_SNAPPY", "OFF")
        .define("PREFER_EXTERNAL_ZLIB", "OFF")
        .define("CMAKE_BUILD_TYPE", "RelWithDebInfo")
        .define("CMAKE_CXX_FLAGS", format!("-fPIC {}", std::env::var("CMAKE_CXX_FLAGS").ok().unwrap_or(String::new())))
        .build();
    println!("cargo:rustc-link-search=native={}/lib", dst.display());
    println!("cargo:rustc-link-lib=static=blosc");
}