From 6316ff73c15156765e4544a249158dab91939b85 Mon Sep 17 00:00:00 2001 From: fanninpm <27117322+fanninpm@users.noreply.github.com> Date: Sat, 9 May 2026 11:31:37 -0400 Subject: [PATCH] Move dependencies to workspace for `capi` crate (#7795) * Add dependency from `capi` crate to workspace * Declare dependency as workspace = true * Update Cargo.toml Co-authored-by: Bas Schoenmaeckers <7943856+bschoenmaeckers@users.noreply.github.com> --------- Co-authored-by: Shahar Naveh <50263213+ShaharNaveh@users.noreply.github.com> Co-authored-by: Bas Schoenmaeckers <7943856+bschoenmaeckers@users.noreply.github.com> --- Cargo.toml | 3 ++- crates/capi/Cargo.toml | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 16bc07ec6..d926b5f5e 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 } @@ -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" diff --git a/crates/capi/Cargo.toml b/crates/capi/Cargo.toml index a090aaeda..e9dc8de00 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"]