From 28f589ebb1940c8e22b8d9062e60e994f7d6e97d Mon Sep 17 00:00:00 2001 From: Bugen Zhao Date: Fri, 5 Jun 2026 10:02:25 +0000 Subject: [PATCH] do not enable pyo3 on `--all-features` Signed-off-by: Bugen Zhao --- rust/src/tool-parser/python/Cargo.toml | 4 ---- tools/build_rust.py | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/rust/src/tool-parser/python/Cargo.toml b/rust/src/tool-parser/python/Cargo.toml index 16d293ed0a1..c029ad90135 100644 --- a/rust/src/tool-parser/python/Cargo.toml +++ b/rust/src/tool-parser/python/Cargo.toml @@ -8,10 +8,6 @@ license.workspace = true name = "_rust_tool_parser" crate-type = ["cdylib", "rlib"] -[features] -default = [] -extension-module = ["pyo3/extension-module"] - [dependencies] pyo3.workspace = true pythonize = { workspace = true, features = ["serde_json"] } diff --git a/tools/build_rust.py b/tools/build_rust.py index 0600a44a124..bba40584c39 100644 --- a/tools/build_rust.py +++ b/tools/build_rust.py @@ -28,7 +28,7 @@ def rust_extensions(*, optional: bool) -> list[RustExtension]: RustExtension( target="vllm._rust_tool_parser", path="rust/src/tool-parser/python/Cargo.toml", - features=["extension-module"], + features=["pyo3/extension-module"], binding=Binding.PyO3, optional=optional, ),