blosc

Crates.ioblosc
lib.rsblosc
version0.2.1
sourcesrc
created_at2018-05-07 23:01:39.857822
updated_at2024-05-24 17:47:53.195429
descriptionRust bindings to the C-BLOSC compression library
homepage
repositoryhttps://github.com/asomers/blosc-rs
max_upload_size
id64213
size18,519
Alan Somers (asomers)

documentation

https://docs.rs/blosc

README

Blosc

Rust bindings for the C-Blosc compression library.

Build Status

The blosc crate provides Rusty bindings for C-Blosc, a compression library for binary data, especially numeric arrays.

Usage

# Cargo.toml
[dependencies]
blosc = "0.1"
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 is distributed under the MIT license. See LICENSE-MIT for details.

Commit count: 101

cargo fmt