summaryrefslogtreecommitdiff
path: root/bin/just-import-cargo.py
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2025-06-26 11:53:11 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2025-06-26 12:55:33 +0200
commit8ce86a09143d173e331ac7c9c79bddf26c97966d (patch)
tree2b84aaf87018bb35906d01637f05ceb8122e0d86 /bin/just-import-cargo.py
parent11a3709d3b28c2fc89778e46b4e8727ebc86ebac (diff)
downloadrules-rust-master.tar.gz
just-import-cargo: always provide Cargo.toml to build_scriptsHEADmaster
As more and more build scripts use Cargo.toml, routinely provide these files as data for build scripts.
Diffstat (limited to 'bin/just-import-cargo.py')
-rwxr-xr-xbin/just-import-cargo.py1
1 files changed, 1 insertions, 0 deletions
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]