Skip to content

v1.1.26 missing src/zlib/ sources in published crate (Windows build broken) #265

@jdx

Description

@jdx

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions