From 22fe9252ac7a2cb670a51c02c5cc7b4a9e704086 Mon Sep 17 00:00:00 2001 From: Padraic Fanning <27117322+fanninpm@users.noreply.github.com> Date: Wed, 6 May 2026 22:36:29 -0400 Subject: [PATCH 1/3] Add dependency from `capi` crate to workspace --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.toml b/Cargo.toml index 6664bd7c106..747354c7339 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -256,6 +256,7 @@ pkcs8 = "0.10" proc-macro2 = "1.0.105" psm = "0.1" pymath = { version = "0.2.0", features = ["mul_add", "malachite-bigint", "complex"] } +pyo3 = "0.28" quote = "1.0.45" radium = "1.1.1" rand = "0.9" From 96158ac0ae437a7ea32d9375ecbecc1bec5ae166 Mon Sep 17 00:00:00 2001 From: Padraic Fanning <27117322+fanninpm@users.noreply.github.com> Date: Wed, 6 May 2026 22:36:50 -0400 Subject: [PATCH 2/3] Declare dependency as workspace = true --- crates/capi/Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/capi/Cargo.toml b/crates/capi/Cargo.toml index a090aaedaf3..e9dc8de00d8 100644 --- a/crates/capi/Cargo.toml +++ b/crates/capi/Cargo.toml @@ -16,11 +16,11 @@ rustpython-vm = { workspace = true, features = ["threading"] } rustpython-stdlib = {workspace = true, features = ["threading"] } [dev-dependencies] -pyo3 = { version = "0.28", features = ["auto-initialize", "abi3"] } +pyo3 = { workspace = true, features = ["auto-initialize", "abi3"] } [lints] workspace = true [package.metadata.cargo-shear] # Not a direct dependency (yet), but we need to enable threading support in the stdlib. -ignored = ["rustpython-stdlib"] \ No newline at end of file +ignored = ["rustpython-stdlib"] From 898cda2d078b0b2a22b8349f7b31de9952cdd2e6 Mon Sep 17 00:00:00 2001 From: Shahar Naveh <50263213+ShaharNaveh@users.noreply.github.com> Date: Thu, 7 May 2026 17:39:50 +0300 Subject: [PATCH 3/3] Update Cargo.toml Co-authored-by: Bas Schoenmaeckers <7943856+bschoenmaeckers@users.noreply.github.com> --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 747354c7339..cbecd979226 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -54,7 +54,7 @@ rustyline = { workspace = true } [dev-dependencies] criterion = { workspace = true } -pyo3 = { version = "0.28.2", features = ["auto-initialize"] } +pyo3 = { workspace = true, features = ["auto-initialize"] } rustpython-stdlib = { workspace = true } ruff_python_parser = { workspace = true }