cargo:rustc-env=VAR=VALUE value restriction #13251
Labels
A-build-scripts
Area: build.rs scripts
A-environment-variables
Area: environment variables
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
S-blocked-external
Status: ❌ blocked on something out of the direct control of the Cargo project, e.g., upstream fix
Problem
Contrary to linux environments, cargo seems to limit the the range of accepted values to the printable ascii range. I see no reason to restrict this, especially since e.g. the linux environment can have any bytes as a value.
Steps
build.rs
main.rs
error:
However in Linux this works as expected:
Possible Solution(s)
Accept all possible values, since I don't see any reason why this should be restricted.
Also this creates an inconsistency that is not necessary and can be confusing.
Notes
No response
Version
The text was updated successfully, but these errors were encountered: