Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/asomers/blosc-rs
Rust bindings for C-Blosc
https://github.com/asomers/blosc-rs
Last synced: 4 days ago
JSON representation
Rust bindings for C-Blosc
- Host: GitHub
- URL: https://github.com/asomers/blosc-rs
- Owner: asomers
- Created: 2018-04-21T00:48:05.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-18T20:49:11.000Z (2 months ago)
- Last Synced: 2024-12-13T09:03:27.949Z (11 days ago)
- Language: Rust
- Size: 81.1 KB
- Stars: 17
- Watchers: 4
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Blosc-rs
Rust bindings for the C-Blosc compression library.
[![Build Status](https://api.cirrus-ci.com/github/asomers/blosc-rs.svg?maxAge=2592000)](https://cirrus-ci.com/github/asomers/blosc-rs)
[![Crates.io](https://img.shields.io/crates/v/blosc.svg?maxAge=2592000)](https://crates.io/crates/blosc)
[![Crates.io](https://img.shields.io/crates/v/blosc-sys.svg?maxAge=2592000)](https://crates.io/crates/blosc-sys)The `blosc` crate provides Rusty bindings for [`C-Blosc`](http://blosc.org/), 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
```toml
# Cargo.toml
[dependencies]
blosc = "0.2"
``````rust
extern crate blosc;fn main() {
let data: Vec = 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](blosc/LICENSE-MIT) for details.