Skip to content

asomers/blosc-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blosc-rs

Rust bindings for the C-Blosc compression library.

Build Status Crates.io Crates.io

The blosc crate provides Rusty bindings for C-Blosc, a compression library for binary data, especially numeric arrays. The blosc-sys crate provides raw FFI bindings for C-Blosc. You probably don't want to use it directly.

Usage

# Cargo.toml
[dependencies]
blosc = "0.2"
extern crate blosc;

fn main() {
    let data: Vec<u32> = vec![1, 1, 2, 5, 8, 13, 21, 34, 55, 89, 144];
    let ctx = blosc::Context::new();
    let compressed = ctx.compress(&data[..]);
    let decompressed = decompress(&compressed).unwrap();
    assert_eq!(data, decompressed);
}

License

blosc and blosc-sys are distributed under the MIT license. See LICENSE-MIT for details.

About

Rust bindings for C-Blosc

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •