#reconstruction #preflate #bindings #low-level #deflate #stream #build

sys libpreflate-sys

Low-level bindings to preflate, a deflate stream reconstruction library

1 unstable release

0.1.0 Nov 13, 2023

#9 in #reconstruction

31 downloads per month
Used in preflate-bindings

MIT/Apache

220KB
5.5K SLoC

C++ 5K SLoC // 0.1% comments Rust 39 SLoC // 0.0% comments

libpreflate-sys

Minimal low-level Rust bindings to the preflate C++ library using CXX.

Disclaimer

This repo contains a modified copy of the preflate library v0.3.5 in the vendor/preflate directory. The copy is taken from the precomp-cpp project as they modified the library to build under Linux. Original CMakeLists.txt from preflate was added and modified with the following modifications:

  • Changed minimum required CMake from 3.2 to 3.5 - CMake refused to build the project with 3.2
  • Commented out the executable targets
  • Added an "install" target which places the static library in lib/ after building (For easier linking to Rust code)

Both precomp-cpp and preflate are licensed under Apache-2.0

Dependencies

~0.6–2.1MB
~32K SLoC