the latest zlib-rs no longer exports the C symbols by default.
https://github.com/trifectatechfoundation/zlib-rs/pull/322
That means it now won't conflict with other dependencies that define those symbols (e.g. curl and openssl). So if zlib-rs gave you linker errors before, the latest version (part of the latest flate2 release) should fix that.