GitXplorerGitXplorer
a

blosc-rs

public
17 stars
6 forks
0 issues

Commits

List of commits on branch master.
Verified
39a222ddda87896ed65d5d0465c2309e4ce8f438

Merge pull request #35 from asomers/decompress-copy

aasomers committed 7 months ago
Unverified
b2709b6d3e217872585b700a7d579e90a0580f3f

Forbid decompressing types that aren't Copy

aasomers committed 7 months ago
Verified
75f4102cf4f34011e0bc7da28404b63e9e8ea7f4

Merge pull request #33 from asomers/minver

aasomers committed 7 months ago
Unverified
271ff68600f328e2b9ca88a21819f234e3fb2eee

Switch CI from using -Zminimal-versions to -Zdirect-minimal-versions

aasomers committed 7 months ago
Unverified
5998e4b0f3acdcad612fc3c3e6372c14756a20d5

chore: Release

aasomers committed 8 months ago
Unverified
51b62b2fce42e36c32bfbc7fdb9e3918c5351375

Update out-of-date comment in README

aasomers committed 8 months ago

README

The README file for this repository.

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.