blosc

Crates.ioblosc
lib.rsblosc
version0.3.1
created_at2018-05-07 23:01:39.857822+00
updated_at2025-12-20 19:29:18.525552+00
descriptionRust bindings to the C-BLOSC compression library
homepage
repositoryhttps://github.com/asomers/blosc-rs
max_upload_size
id64213
size28,977
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.

[!WARNING] This crate is deprecated. The author no longer uses it in his own projects, and new alternatives have arisen. If you use this crate, then I suggest you either:

  • Volunteer to take over maintainership from me.
  • Switch to the byteshuffle crate, if all you care about is the shuffle filter.
  • Switch to the blosc-rs crate.
  • Switch to the blosc2 crate.
  • Switch to the blosc2-rs crate.

Usage

# Cargo.toml
[dependencies]
blosc = "0.3"
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: 107

cargo fmt