Skip to content

Commit 002a537

Browse files
committed
Adding fix to pyo3 to enables full libpython linking when running tarpaulin.
1 parent 6a57f28 commit 002a537

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
- name: Run coverage
8989
if: runner.os == 'Linux'
9090
run: |
91-
cargo tarpaulin --out Xml --timeout 200
91+
cargo tarpaulin --feature test-with-python --out Xml --timeout 200
9292
9393
- name: Upload coverage reports to Codecov
9494
if: runner.os == 'Linux'

crates/pymwemu/Cargo.toml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,21 @@ description = "x86 32/64bits and system internals emulator, for securely emulati
99
name = "pymwemu"
1010
crate-type = ["cdylib", "rlib"]
1111

12+
[features]
13+
default = ["pyo3/extension-module"]
14+
test-with-python = ["pyo3/auto-initialize"]
15+
16+
[dependencies.pyo3]
17+
version = "0.26"
18+
features = ["extension-module"] # default
19+
20+
[dev-dependencies]
21+
pyo3 = { version = "0.26", features = ["auto-initialize"] }
22+
1223
[dependencies]
13-
pyo3 = { version = "0.26", features = ["extension-module"] }
1424
env_logger = "0.11.6"
1525
libmwemu = { path = "../libmwemu" }
1626
log = "0.4.22"
1727
iced-x86 = "1.21.0"
28+
29+

0 commit comments

Comments
 (0)