Skip to content

Latest commit

 

History

History

dynamic-libz-sys

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

dynamic-libz-sys

Loads a zlib dynamically, exposing an api similar to the libz-sys crate.

This is useful for debugging the logic in this crate, which quite closely matches zlib-ng. We can locally modify and build zlib-ng to print or otherwise expose internal information, and then run that version of zlib-ng from rust, giving it the same input as we give to our rust implementation.

usage

The dynamic library location is read from the DYNAMIC_LIBZ_SYS environment variable. To use a custom dynamic library, use a command like this:

DYNAMIC_LIBZ_SYS="/home/folkertdev/rust/zlib-ng/libz.so" cargo test