7 releases

0.2.4+bitmagic.7.7.7 Nov 22, 2021
0.2.3+bitmagic.7.6.0 Nov 9, 2021
0.2.1+bitmagic.7.4.0 Jul 9, 2021
0.2.0+bitmagic.7.3.1 Mar 25, 2021
0.1.1+bitmagic.7.3.1 Mar 19, 2021

#380 in #generation

Download history 10/week @ 2024-03-31 1/week @ 2024-04-07

100 downloads per month
Used in bitmagic

Apache-2.0

2.5MB
65K SLoC

C++ 62K SLoC // 0.1% comments C 1.5K SLoC // 0.2% comments Shell 742 SLoC // 0.2% comments Rust 661 SLoC // 0.0% comments Batch 19 SLoC // 0.4% comments

bitmagic-sys

Raw (unsafe, low-level) bindings for BitMagic. Exposes the BitMagic C API as generated by bindgen.

The bindings generation is inspired by how zstd-rs handles bindgen calls. There is a copy of the bindgen-generated files in src/bindings.rs and by default it is used when the crate is build. If the optional feature bindgen is active, then it will run bindgen during the build process and regenerate the bindings dynamically. This is useful in places where installing the bindgen dependencies (like libclang) is difficult.

Dependencies