Skip to content

Commit 6a57f28

Browse files
committed
Fixing pymwemu compatibility changed from version 0.18 to version 0.26.
1 parent f4a946c commit 6a57f28

File tree

4 files changed

+108
-3
lines changed

4 files changed

+108
-3
lines changed

Cargo.lock

Lines changed: 105 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[workspace]
22
resolver = "2"
33
members = [
4-
# "crates/pymwemu",
4+
"crates/pymwemu",
55
"crates/libmwemu",
66
"crates/mwemu",
77
]

crates/pymwemu/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ name = "pymwemu"
1010
crate-type = ["cdylib", "rlib"]
1111

1212
[dependencies]
13-
pyo3 = "0.26.0"
13+
pyo3 = { version = "0.26", features = ["extension-module"] }
1414
env_logger = "0.11.6"
1515
libmwemu = { path = "../libmwemu" }
1616
log = "0.4.22"

crates/pymwemu/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ fn init64() -> PyResult<Emu> {
864864
}
865865

866866
#[pymodule]
867-
fn pymwemu(_py: Python, m: &PyModule) -> PyResult<()> {
867+
fn pymwemu(_py: Python, m: &Bound<PyModule>) -> PyResult<()> {
868868
env_logger::Builder::from_env(Env::default().default_filter_or("info"))
869869
.format(|buf, record| writeln!(buf, "{}", record.args()))
870870
.init();

0 commit comments

Comments
 (0)