Skip to content

fix(libz-sys): stop printing zlib cmd in build script - #280

Merged
Byron merged 2 commits into
rust-lang:mainfrom
weihanglo:no-print
Oct 28, 2026
Merged

Byron merged 2 commits into
rust-lang:mainfrom
weihanglo:no-print

Conversation

@weihanglo

Copy link
Copy Markdown
Member

The env vars may be captured by Cargo in fingerprint and leaked, similar to the miri case, see: https://blog.rust-lang.org/2026/09/21/github-actions-leaking-secrets-when-miri-output-is-cached/

cc @Byron
would appreciate if we can get a patch release.

@weihanglo weihanglo changed the title fix: stop printing zlib probe cmd in build script fix(libz-sys): stop printing zlib cmd in build script Oct 28, 2026

@Byron Byron left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, a release will be available shortly.

@Byron
Byron merged commit 595fbb7 into rust-lang:main Oct 28, 2026
55 checks passed
@weihanglo
weihanglo deleted the no-print branch October 28, 2026 14:00
opensource-fork-sync Bot pushed a commit to cla7aye15I4nd/opensource-tempoxyz__tempo that referenced this pull request Oct 29, 2026
Bumps `libz-sys` 1.1.29 → 1.1.31 (lockfile only) to fix
RUSTSEC-2026-0418, which fails `cargo deny` on every PR. Older build
scripts print the build environment, secrets included.

Audited the crate diff: `src/` (vendored zlib) is unchanged. `build.rs`
drops the `println!` that leaked the environment
([rust-lang/libz-sys#280](rust-lang/libz-sys#280)),
uses `Z_SOLO` only on `wasm32-unknown-unknown`, and adds
`-march=armv8-a+crc` on aarch64 when the target has `crc`. Published by
a crate owner (Byron) from upstream commit 595fbb7. `cargo deny check`
passes locally.
This was referenced Oct 29, 2026
jxom pushed a commit to tempoxyz/tempo that referenced this pull request Nov 2, 2026
Bumps `libz-sys` 1.1.29 → 1.1.31 (lockfile only) to fix
RUSTSEC-2026-0418, which fails `cargo deny` on every PR. Older build
scripts print the build environment, secrets included.

Audited the crate diff: `src/` (vendored zlib) is unchanged. `build.rs`
drops the `println!` that leaked the environment
([rust-lang/libz-sys#280](rust-lang/libz-sys#280)),
uses `Z_SOLO` only on `wasm32-unknown-unknown`, and adds
`-march=armv8-a+crc` on aarch64 when the target has `crc`. Published by
a crate owner (Byron) from upstream commit 595fbb7. `cargo deny check`
passes locally.

(cherry picked from commit 2e4a4d1)
This was referenced Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants