Skip to content

Commit d3e8f7a

Browse files
committed
Fixing pyo3 with tarpaulin part 1
1 parent d6a05d0 commit d3e8f7a

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
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 --features test-with-python --out Xml --timeout 200
91+
cargo tarpaulin --features "extension-module" --out Xml --timeout 200
9292
9393
- name: Upload coverage reports to Codecov
9494
if: runner.os == 'Linux'

crates/pymwemu/Cargo.toml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,12 @@ 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-
1612
[dependencies.pyo3]
1713
version = "0.26"
18-
features = ["extension-module"] # default
1914

20-
[dev-dependencies]
21-
pyo3 = { version = "0.26", features = ["auto-initialize"] }
15+
[features]
16+
extension-module = ["pyo3/extension-module"]
17+
default = ["extension-module"] # default
2218

2319
[dependencies]
2420
env_logger = "0.11.6"

0 commit comments

Comments
 (0)