Crates.io | blosc |
lib.rs | blosc |
version | 0.2.1 |
source | src |
created_at | 2018-05-07 23:01:39.857822 |
updated_at | 2024-05-24 17:47:53.195429 |
description | Rust bindings to the C-BLOSC compression library |
homepage | |
repository | https://github.com/asomers/blosc-rs |
max_upload_size | |
id | 64213 |
size | 18,519 |
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.
# 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);
}
blosc
is distributed under the MIT license. See
LICENSE-MIT for details.