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
"""A flag for which causes `cargo_build_script` to symlink the execroot of the action to \
@@ -43,6 +43,25 @@ def use_default_shell_env():
43
43
build_setting_default=True,
44
44
)
45
45
46
+
defemit_build_script_warnings():
47
+
"""A flag which controls whether `cargo_build_script` warnings \
48
+
(`cargo::warning=`) are printed to stderr.
49
+
50
+
Supported values:
51
+
52
+
- `on`: emit warnings for every `cargo_build_script` target, overriding any
53
+
per-target `emit_warnings = False`.
54
+
- `auto` (default): respect the per-target `emit_warnings` attribute.
55
+
`crate_universe`-generated targets set it to `False`, so registry/git
56
+
crates stay quiet (matching Cargo); first-party targets emit by default.
57
+
- `off`: silence warnings build-wide.
58
+
"""
59
+
string_flag(
60
+
name="emit_build_script_warnings",
61
+
build_setting_default="auto",
62
+
values= ["on", "auto", "off"],
63
+
)
64
+
46
65
defout_dir_volatile_file_basenames():
47
66
"""A flag which determines what file basenames are removed from `OUT_DIR` by `cargo_build_script` actions to make the `_bs.out_dir` TreeArtifact deterministic.
0 commit comments