rules_rust icon indicating copy to clipboard operation
rules_rust copied to clipboard

Environment variables Cargo sets for crates

Open n1ght-hunter opened this issue 8 months ago • 1 comments

when building with cargo these env variables are injected for crates to use. https://doc.rust-lang.org/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-crates currently rust rules injects some of them if they exist. To work better with rust crates they all need injecting with an empty string unless the value is read from the cargo toml. many crates use the env!() macro to get these values and wont compile if they dont exist but are fine if they are an empty string

n1ght-hunter avatar May 28 '24 06:05 n1ght-hunter