diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-06-26 11:52:13 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-06-26 12:55:33 +0200 |
commit | 11a3709d3b28c2fc89778e46b4e8727ebc86ebac (patch) | |
tree | 4ae0cb86300182105141ef691017e6a5d1d8f5a3 /README.md | |
parent | b590ae80ab6c2fc1e01f1baa9f48d6da0c7d0a70 (diff) | |
download | rules-rust-11a3709d3b28c2fc89778e46b4e8727ebc86ebac.tar.gz |
["cargo", "build_script"]: support "extra_data"
Build scripts often require additional data; therefore, extend
the rule by a field "extra_data" that will be available when running
the build script.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -160,6 +160,7 @@ provided by the "defaults" for the "HOST_ARCH". | `"defaults"` | The Rust toolchain to use. | | `"deps"` | Any other libraries this binary depends upon. | | `"edition"` | The edition of the compiler to use during compilation. If unset, 2015 is used. | +| `"extra_data"` | Extra files needed while running the build script. | | `"name"` | The name of the crate being built. | | `"pkg_name"` | The name of the package the crate belongs to. It is exported to the CARGO_PKG_NAME environment variable. | | `"srcs"` | The source files of the binary. | |