12 releases

0.3.8 Dec 16, 2025
0.3.7 Nov 25, 2025
0.3.6 Apr 17, 2025
0.3.4 Jun 22, 2024
0.1.0 Feb 8, 2021

#209 in Compression

Download history 4734/week @ 2025-10-29 4904/week @ 2025-11-05 5485/week @ 2025-11-12 5935/week @ 2025-11-19 4637/week @ 2025-11-26 5799/week @ 2025-12-03 4694/week @ 2025-12-10 6092/week @ 2025-12-17 2310/week @ 2025-12-24 4799/week @ 2025-12-31 10203/week @ 2026-01-07 8075/week @ 2026-01-14 11225/week @ 2026-01-21 15011/week @ 2026-01-28 13172/week @ 2026-02-04 12228/week @ 2026-02-11

53,413 downloads per month
Used in 17 crates (6 directly)

BSD-3-Clause

265KB
5.5K SLoC

C 5K SLoC // 0.2% comments Rust 298 SLoC

blosc-src

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.

Non-rust dependencies

The crate builds c-blosc from source using the cc crate. As such it is required to have a C compiler installed.

Features

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.

Usage

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.

Dependencies

~0–1.4MB
~26K SLoC