Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
Prev Previous commit
Next Next commit
add _lzma module with new dependency
Signed-off-by: Ashwin Naren <[email protected]>
  • Loading branch information
arihant2math authored and youknowone committed May 7, 2025
commit 2a1ea45659a2c92a20fcb13ec42f613dc8bab57e
32 changes: 32 additions & 0 deletions 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 stdlib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ crc32fast = "1.3.2"
flate2 = { version = "1.1", default-features = false, features = ["zlib-rs"] }
libz-sys = { package = "libz-rs-sys", version = "0.5" }
bzip2 = { version = "0.5", features = ["libbz2-rs-sys"] }
lzma-rs = "0.3"

# tkinter
tk-sys = { git = "https://github.com/arihant2math/tkinter.git", tag = "v0.2.0", optional = true }
Expand Down
2 changes: 2 additions & 0 deletions stdlib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ mod uuid;

#[cfg(feature = "tkinter")]
mod tkinter;
mod lzma;

use rustpython_common as common;
use rustpython_vm as vm;
Expand Down Expand Up @@ -120,6 +121,7 @@ pub fn get_module_inits() -> impl Iterator<Item = (Cow<'static, str>, StdlibInit
"faulthandler" => faulthandler::make_module,
"gc" => gc::make_module,
"_hashlib" => hashlib::make_module,
"_lzma" => lzma::make_module,
"_sha1" => sha1::make_module,
"_sha3" => sha3::make_module,
"_sha256" => sha256::make_module,
Expand Down
6 changes: 6 additions & 0 deletions stdlib/src/lzma.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pub(crate) use _lzma::make_module;

#[pymodule]
mod _lzma {

}