Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
6de5237
Add _zstd stdlib module backing compression.zstd
JamesClarke7283 May 23, 2026
78c3702
Fix iOS build by removing static PyMutex<PyTypeRef>
JamesClarke7283 May 23, 2026
cb70b82
Fix clippy errors in zstd module
JamesClarke7283 May 23, 2026
fb78bef
Retrigger CI
JamesClarke7283 May 23, 2026
97ba0b4
chore: format zstd module
JamesClarke7283 May 23, 2026
31c4296
Update crates/stdlib/src/zstd.rs
JamesClarke7283 May 24, 2026
ca664fd
chore: remove rustdoc comments from zstd module
JamesClarke7283 May 24, 2026
a9ce31b
commit message
JamesClarke7283 May 25, 2026
b77ba8b
commit message
JamesClarke7283 May 25, 2026
acfb59b
Identify zstd parameter enums by type identity, not name
JamesClarke7283 Jun 3, 2026
cca16a0
Match CPython error behavior in _zstd ZstdCompressor
JamesClarke7283 Jun 3, 2026
5b558cf
Address review: drop decorative separators and unused zstd crate
JamesClarke7283 Aug 9, 2026
265e591
Switch _zstd backend from zstd-safe to pure-Rust libzstd-rs-sys
JamesClarke7283 Aug 9, 2026
e84daba
Fix data loss in ZstdDecompressor.decompress(max_length=0)
JamesClarke7283 Aug 9, 2026
2466964
Drop duplicate spell-checker line in zstd.rs
JamesClarke7283 Aug 9, 2026
3372949
Address review on _zstd constants, version attrs and dict markers
JamesClarke7283 Aug 19, 2026
a7f161c
Replace the _zstd flush-mode constants with a CompressMode enum
JamesClarke7283 Aug 19, 2026
04d560c
Correct the _zstd explanatory comments and raise MemoryError on OOM
JamesClarke7283 Aug 19, 2026
97b6f48
Fix CPython divergences and a crash in the _zstd module
JamesClarke7283 Aug 19, 2026
acd733c
Restore Lib/test/test_zstd.py to its vendored CPython state
JamesClarke7283 Aug 19, 2026
bae349d
Rewrite _zstd against rusty_zstd
youknowone Oct 1, 2026
d9130bd
Use libzstd-rs-sys for _zstd
youknowone Oct 1, 2026
4707f1b
Add zstd context and dictionary names to spell-checker ignore
youknowone Oct 15, 2026
bd61e5f
Exclude _zstd from wasm32-unknown-unknown
youknowone Oct 15, 2026
cb083af
Build _zstd on wasm32-unknown-unknown with a libzstd-rs-sys fork
youknowone Oct 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ xz-sys = "0.4.6-rc.0"
libsqlite3-sys = "0.38"
libz-rs-sys = "0.6"
zlib-rs = { version = "=0.6.8", default-features = false, features = ["rust-allocator", "__internal-api"] }
libzstd-rs-sys = { git = "https://github.com/youknowone/libzstd-rs-sys", rev = "a3e65793c11012ad6ae09c5d9b5dd892d2952c01" }
lock_api = "0.4"
log = "0.4.30"
lz4_flex = "0.14"
Expand Down
1 change: 1 addition & 0 deletions crates/stdlib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,11 @@

# compression
adler32 = { workspace = true }
libzstd-rs-sys = { workspace = true }

# tkinter
tk-sys = { workspace = true, optional = true }
tcl-sys = { workspace = true, optional = true }

Check warning on line 78 in crates/stdlib/Cargo.toml

View workflow job for this annotation

GitHub Actions / cargo shear

shear/unused_optional_dependency

unused optional dependency `tcl-sys`
widestring = { workspace = true, optional = true }

# uuid
Expand Down
3 changes: 3 additions & 0 deletions crates/stdlib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ mod lzma;

mod zlib;

mod zstd;

mod blake2;
mod hashlib;
mod md5;
Expand Down Expand Up @@ -325,5 +327,6 @@ pub fn stdlib_module_defs(ctx: &Context) -> Vec<&'static builtins::PyModuleDef>
))]
uuid::module_def(ctx),
zlib::module_def(ctx),
zstd::module_def(ctx),
]
}
Loading
Loading