From c56d7344f6f00dc09d287fd78895e5a03296eb82 Mon Sep 17 00:00:00 2001 From: Bruce Merry Date: Wed, 20 Mar 2024 16:42:39 +0200 Subject: [PATCH] Add extension-module feature for pyo3 Apparently required to get the linkage correct. --- Cargo.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index b19b4d5..77902e3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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]