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
Copy file name to clipboardExpand all lines: README.md
+6-4
Original file line number
Diff line number
Diff line change
@@ -57,10 +57,12 @@ Afterward, the `components` and `target` specified via inputs are installed in a
57
57
### RUSTFLAGS
58
58
59
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`.
60
61
61
-
However, rustflags sources are mutually exclusive, so setting this environment
62
-
variable omits any configuration through `target.*.rustflags` or
63
-
`build.rustflags`.
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`.
64
66
65
67
To prevent this from happening, set the `rustflags` input to an empty string, which will
66
68
prevent the action from setting `RUSTFLAGS` at all, keeping any existing preferences.
0 commit comments