diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a43c12c3d..ed04eba50 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,11 +18,9 @@ jobs: - name: "Check" run: cargo check --all - name: "Build" - # Has to use `--no-default-features` to avoid crash. - # See: https://pyo3.rs/latest/faq.html#i-cant-run-cargo-test-im-having-linker-issues-like-symbol-not-found-or-undefined-reference-to-_pyexc_systemerror - run: cargo build --all --no-default-features + run: cargo build --all - name: "Test" - run: cargo test --all --no-default-features + run: cargo test --all clippy: name: "Clippy" diff --git a/apis/python/node/Cargo.toml b/apis/python/node/Cargo.toml index 99d6bb047..d20be2856 100644 --- a/apis/python/node/Cargo.toml +++ b/apis/python/node/Cargo.toml @@ -18,8 +18,3 @@ serde_yaml = "0.8.23" [lib] name = "dora" crate-type = ["cdylib"] - - -[features] -extension-module = ["pyo3/extension-module"] -default = ["extension-module"] diff --git a/apis/python/node/pyproject.toml b/apis/python/node/pyproject.toml new file mode 100644 index 000000000..e95999725 --- /dev/null +++ b/apis/python/node/pyproject.toml @@ -0,0 +1,9 @@ +[build-system] +requires = ["maturin>=0.12,<0.13"] +build-backend = "maturin" + +[project] +name = "dora" + +[tool.maturin] +features = ["pyo3/extension-module"]