You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Summary
Add `build_script_env_files` support to `crate.annotation`, allowing
environment files to be passed to generated `cargo_build_script`
targets.
The change:
- Exposes `build_script_env_files` through bzlmod and legacy crate
annotations.
- Propagates the annotation through crate-universe configuration and
build-script context.
- Renders the attribute on generated `cargo_build_script` rules.
- Supports unconditional and platform-selected values.
- Updates the configuration digest.
- Adds tests for annotation propagation and BUILD-file rendering.
## Testing
- `bazel test //crate_universe:unit_test`
Copy file name to clipboardExpand all lines: crate_universe/private/crate.bzl
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -96,6 +96,7 @@ def _annotation(
96
96
build_script_data_glob=None,
97
97
build_script_deps=None,
98
98
build_script_env=None,
99
+
build_script_env_files=None,
99
100
build_script_exec_properties=None,
100
101
build_script_link_deps=None,
101
102
build_script_proc_macro_deps=None,
@@ -143,6 +144,8 @@ def _annotation(
143
144
attribute.
144
145
build_script_deps (list, optional): A list of labels to add to a crate's `cargo_build_script::deps` attribute.
145
146
build_script_env (dict, optional): Additional environment variables to set when running the crate's `cargo_build_script` - sets that target's `build_script_env` attribute.
147
+
build_script_env_files (list, optional): A list of labels to set on a crate's
0 commit comments