| Crates.io | blosc |
| lib.rs | blosc |
| version | 0.3.1 |
| created_at | 2018-05-07 23:01:39.857822+00 |
| updated_at | 2025-12-20 19:29:18.525552+00 |
| description | Rust bindings to the C-BLOSC compression library |
| homepage | |
| repository | https://github.com/asomers/blosc-rs |
| max_upload_size | |
| id | 64213 |
| size | 28,977 |
Rust bindings for the C-Blosc compression library.
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.
# 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);
}
blosc is distributed under the MIT license. See
LICENSE-MIT for details.