From 5899db2a52f3340b02c2a1a460e7f821202a20a8 Mon Sep 17 00:00:00 2001 From: CYFS <2805686936@qq.com> Date: Wed, 9 Sep 2026 12:07:39 +0800 Subject: [rust][build] Avoid toml dependency during clean --- components/rust/examples/modules/SConscript | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'components/rust/examples/modules/SConscript') diff --git a/components/rust/examples/modules/SConscript b/components/rust/examples/modules/SConscript index 056501c057..dffacb839d 100644 --- a/components/rust/examples/modules/SConscript +++ b/components/rust/examples/modules/SConscript @@ -1,7 +1,6 @@ import os import sys import subprocess -import toml from building import * cwd = GetCurrentDir() @@ -77,7 +76,9 @@ def build_rust_module(module_dir, build_root): cargo_toml_path = os.path.join(module_dir, 'Cargo.toml') if not os.path.exists(cargo_toml_path): return [], [], "" - + + import toml + with open(cargo_toml_path, 'r') as f: cargo_config = toml.load(f) -- cgit v1.3.1