From ef194aa8205ee30ec80a15238a00ffca223f9a3d Mon Sep 17 00:00:00 2001 From: ShaharNaveh <50263213+ShaharNaveh@users.noreply.github.com> Date: Wed, 6 May 2026 11:41:13 +0300 Subject: [PATCH 1/3] Fixed: `unused manifest key: dependencies.libz-sys.package` --- crates/stdlib/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/stdlib/Cargo.toml b/crates/stdlib/Cargo.toml index 47bd45c62bc..10419903e97 100644 --- a/crates/stdlib/Cargo.toml +++ b/crates/stdlib/Cargo.toml @@ -87,7 +87,7 @@ ucd = { workspace = true } adler32 = { workspace = true } crc32fast = { workspace = true } flate2 = { workspace = true, features = ["zlib-rs"] } -libz-sys = { package = "libz-rs-sys", workspace = true } +libz-sys = { workspace = true } bzip2 = { workspace = true } # tkinter From 1b7c0af4e89c2f26c570cee735ddd2ff11328863 Mon Sep 17 00:00:00 2001 From: ShaharNaveh <50263213+ShaharNaveh@users.noreply.github.com> Date: Sun, 10 May 2026 10:56:21 +0300 Subject: [PATCH 2/3] Use `libz-rs-sys` instead --- Cargo.toml | 2 +- crates/stdlib/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 53886778bab..8d45703012c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -224,7 +224,7 @@ libloading = "0.9" liblzma = "0.4" liblzma-sys = "0.4" libsqlite3-sys = "0.37" -libz-sys = { package = "libz-rs-sys", version = "0.5" } +libz-rs-sys = "0.5" lock_api = "0.4" log = "0.4.29" nix = { version = "0.31", features = ["fs", "user", "process", "term", "time", "signal", "ioctl", "socket", "sched", "zerocopy", "dir", "hostname", "net", "poll"] } diff --git a/crates/stdlib/Cargo.toml b/crates/stdlib/Cargo.toml index 10419903e97..25a4b8c12f2 100644 --- a/crates/stdlib/Cargo.toml +++ b/crates/stdlib/Cargo.toml @@ -87,7 +87,7 @@ ucd = { workspace = true } adler32 = { workspace = true } crc32fast = { workspace = true } flate2 = { workspace = true, features = ["zlib-rs"] } -libz-sys = { workspace = true } +libz-rs-sys = { workspace = true } bzip2 = { workspace = true } # tkinter From 47af8bc2438320e53d500837a93d825a4e85126c Mon Sep 17 00:00:00 2001 From: ShaharNaveh <50263213+ShaharNaveh@users.noreply.github.com> Date: Sun, 10 May 2026 11:46:23 +0300 Subject: [PATCH 3/3] Adjust rust code --- crates/stdlib/src/zlib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/stdlib/src/zlib.rs b/crates/stdlib/src/zlib.rs index 35a617ed152..08855e43e79 100644 --- a/crates/stdlib/src/zlib.rs +++ b/crates/stdlib/src/zlib.rs @@ -25,7 +25,7 @@ mod zlib { use std::io::Write; #[pyattr] - use libz_sys::{ + use libz_rs_sys::{ Z_BEST_COMPRESSION, Z_BEST_SPEED, Z_BLOCK, Z_DEFAULT_COMPRESSION, Z_DEFAULT_STRATEGY, Z_DEFLATED as DEFLATED, Z_FILTERED, Z_FINISH, Z_FIXED, Z_FULL_FLUSH, Z_HUFFMAN_ONLY, Z_NO_COMPRESSION, Z_NO_FLUSH, Z_PARTIAL_FLUSH, Z_RLE, Z_SYNC_FLUSH, Z_TREES, @@ -39,7 +39,7 @@ mod zlib { #[pyattr(name = "ZLIB_RUNTIME_VERSION")] #[pyattr] const ZLIB_VERSION: &str = unsafe { - match core::ffi::CStr::from_ptr(libz_sys::zlibVersion()).to_str() { + match core::ffi::CStr::from_ptr(libz_rs_sys::zlibVersion()).to_str() { Ok(s) => s, Err(_) => unreachable!(), }