Skip to content

Commit 729e1e3

Browse files
author
Vladimir Vilimaitis
committed
Split PyO3 extension feature for Rust tests
1 parent 408cb3d commit 729e1e3

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,13 @@ name = "polars_janitor_rust"
1111
crate-type = ["cdylib"]
1212
path = "rust/src/lib.rs"
1313

14+
[features]
15+
default = []
16+
extension-module = ["pyo3/extension-module"]
17+
1418
[dependencies]
1519
polars = { version = "0.53.0", default-features = false, features = ["lazy"] }
16-
pyo3 = { version = "0.27.1", features = ["extension-module"] }
20+
pyo3 = "0.27.1"
1721
pyo3-polars = { version = "0.26.0", features = ["lazy"] }
1822
unicode-normalization = "0.1.25"
1923

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ dev = [
6060

6161
[tool.maturin]
6262
bindings = "pyo3"
63+
features = ["extension-module"]
6364
module-name = "polars_janitor._rust"
6465
python-source = "src"
6566
include = [

0 commit comments

Comments
 (0)