Summary
libz-sys 1.1.26 published to crates.io is missing the src/zlib/ directory contents. This breaks all builds that compile zlib from source (notably Windows).
Details
The crate tarball only contains src/lib.rs and src/smoke.c — none of the vendored zlib C sources:
$ tar tzf libz-sys-1.1.26.crate | grep "src/"
libz-sys-1.1.26/src/lib.rs
libz-sys-1.1.26/src/smoke.c
For comparison, 1.1.25 correctly includes src/zlib/*.c and src/zlib/*.h.
This causes Windows builds to fail with:
error: failed to run custom build command for `libz-sys v1.1.26`
c1: fatal error C1083: Cannot open source file: 'src/zlib/adler32.c': No such file or directory
The src/zlib directory is a git submodule in the repo. It appears cargo publish did not vendor the submodule contents into the crate tarball.
This is the same class of bug that caused v1.0.26 to be yanked.
Suggested fix
Yank 1.1.26 and re-publish with the submodule contents properly included (e.g. by running cargo publish with --allow-dirty from a checkout with submodules initialized, or by using a build script that doesn't rely on submodule vendoring).
This issue was generated by Claude Code.
Summary
libz-sys 1.1.26published to crates.io is missing thesrc/zlib/directory contents. This breaks all builds that compile zlib from source (notably Windows).Details
The crate tarball only contains
src/lib.rsandsrc/smoke.c— none of the vendored zlib C sources:For comparison, 1.1.25 correctly includes
src/zlib/*.candsrc/zlib/*.h.This causes Windows builds to fail with:
The
src/zlibdirectory is a git submodule in the repo. It appearscargo publishdid not vendor the submodule contents into the crate tarball.This is the same class of bug that caused v1.0.26 to be yanked.
Suggested fix
Yank 1.1.26 and re-publish with the submodule contents properly included (e.g. by running
cargo publishwith--allow-dirtyfrom a checkout with submodules initialized, or by using a build script that doesn't rely on submodule vendoring).This issue was generated by Claude Code.