From 8ce86a09143d173e331ac7c9c79bddf26c97966d Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Thu, 26 Jun 2025 11:53:11 +0200 Subject: just-import-cargo: always provide Cargo.toml to build_scripts As more and more build scripts use Cargo.toml, routinely provide these files as data for build scripts. --- bin/just-import-cargo.py | 1 + rules/cargo/RULES | 1 + 2 files changed, 2 insertions(+) diff --git a/bin/just-import-cargo.py b/bin/just-import-cargo.py index e82c0c9..4507ed1 100755 --- a/bin/just-import-cargo.py +++ b/bin/just-import-cargo.py @@ -379,6 +379,7 @@ def compute_targets( d_build_script["name"] = ["build_script"] crate_root = os.path.relpath(t["src_path"], root_dir) d_build_script["crate_root"] = [crate_root] + d_build_script["extra_data"] = ["Cargo.toml"] d_build_script["arguments_config"] = config d_build_script["edition"] = [t["edition"]] d_build_script["stage"] = [rep_name] diff --git a/rules/cargo/RULES b/rules/cargo/RULES index dd48c4d..9d042dc 100644 --- a/rules/cargo/RULES +++ b/rules/cargo/RULES @@ -65,6 +65,7 @@ , "defaults": [{"type": "CALL_EXPRESSION", "name": "for host"}] , "deps": [{"type": "CALL_EXPRESSION", "name": "for host as rlib"}] , "srcs": [{"type": "CALL_EXPRESSION", "name": "for host"}] + , "extra_data": [{"type": "CALL_EXPRESSION", "name": "for host"}] } , "imports": { "call rustc artifact": ["./", "../rust", "call rustc artifact"] -- cgit v1.2.3