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
| `rustflags` | Set the value of `RUSTFLAGS` (set to empty string to avoid overwriting existing flags) | "-D warnings" |
56
+
57
+
### RUSTFLAGS
58
+
59
+
By default, this action sets the `RUSTFLAGS` environment variable to `-D warnings`.
60
+
However, rustflags sources are mutually exclusive, so setting this environment variable omits any configuration through `target.*.rustflags` or `build.rustflags`.
61
+
62
+
* If `RUSTFLAGS` is already set, no modifications of the variable are made and the original value remains.
63
+
* If `RUSTFLAGS` is unset and the `rustflags` input is empty (i.e., the empty string), then it will remain unset.
64
+
Use this, if you want to prevent the value from being set because you make use of `target.*.rustflags` or `build.rustflags`.
65
+
* Otherwise, the environment variable `RUSTFLAGS` is set to the content of `rustflags`.
66
+
67
+
To prevent this from happening, set the `rustflags` input to an empty string, which will
68
+
prevent the action from setting `RUSTFLAGS` at all, keeping any existing preferences.
69
+
70
+
You can read more rustflags, and their load order, in the [Cargo reference].
0 commit comments