Skip to content

Commit

Permalink
Add extension-module feature for pyo3
Browse files Browse the repository at this point in the history
Apparently required to get the linkage correct.
  • Loading branch information
bmerry committed Mar 20, 2024
1 parent c2f539f commit c56d734
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ edition = "2021"
name = "_lib"
crate-type = ["cdylib", "rlib"] # rlib included just for testing

# TODO: gil-refs currently seems to be required, but it should be removed
# when possible.
[dependencies]
enum-map = "2.7.3"
itoa = "1.0.10"
once_cell = "1.19.0"
pyo3 = { version = "0.21.0-beta.0", features = ["gil-refs"] }
pyo3 = { version = "0.21.0-beta.0", features = ["gil-refs", "extension-module"] }
thiserror = "1.0.58"

[dev-dependencies]
Expand Down

0 comments on commit c56d734

Please sign in to comment.