Crates.io | blosc-src |
lib.rs | blosc-src |
version | 0.3.4 |
source | src |
created_at | 2021-02-08 17:25:47.215841 |
updated_at | 2024-06-22 06:43:53.309461 |
description | FFI bindings for blosc-c |
homepage | |
repository | https://github.com/mulimoen/rust-blosc-src |
max_upload_size | |
id | 352412 |
size | 438,390 |
This is an FFI crate for using the Blosc compressor as implemented in c-blosc
. The blosc compressor is a library of lossless compressors, which enables the developer to more easily use different compression algorithms depending on the data.
The crate builds c-blosc
from source using the cc
crate. As such it is required to have a C compiler installed.
c-blosc
can transparently use different compressors, but some of these are only available when included though cargo
features. These include
zlib
zstd
lz4
snappy
When these are requested they will be built from source and available for use by blosc
.
As this crate only provides FFI, the examples from c-blosc
also functions as examples for this crate. A simple roundtrip is included in test.rs
.
The developer must take special care in dealing with memory and in multi-threaded environments. It is recommended to create and use a safe interface instead of this crate directly.