#snappy

sys snappy_src

FFI bindings for snappy, a fast compressor/decompressor

6 releases

0.2.5+snappy.1.2.2 Mar 26, 2025
0.2.4+snappy.1.2.1 Jan 12, 2025
0.2.3+snappy.1.2.1 Jun 22, 2024
0.1.1 Jun 21, 2024

#683 in Compression

Download history 847/week @ 2025-11-17 869/week @ 2025-11-24 1257/week @ 2025-12-01 1647/week @ 2025-12-08 1869/week @ 2025-12-15 1242/week @ 2025-12-22 783/week @ 2025-12-29 2734/week @ 2026-01-05 1294/week @ 2026-01-12 1125/week @ 2026-01-19 1518/week @ 2026-01-26 1504/week @ 2026-02-02 952/week @ 2026-02-09 1599/week @ 2026-02-16 2138/week @ 2026-02-23 1645/week @ 2026-03-02

6,441 downloads per month
Used in 5 crates (via blosc-src)

MIT/Apache

130KB
2K SLoC

C++ 2K SLoC // 0.3% comments Bazel 123 SLoC // 0.5% comments Rust 118 SLoC // 0.1% comments

snappy_src

Latest Version snappy_src documentation build

Raw Rust bindings to Snappy (https://github.com/google/snappy), a fast compressor/decompressor.

Bindings

This library includes a pre-generated bindings.rs file for snappy-c.h. New bindings can be generated using the bindgen feature:

cargo build --features bindgen

Licence

snappy_src is licensed under either of

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~9–360KB