-
Notifications
You must be signed in to change notification settings - Fork 423
Closed
Labels
Description
Today Cross can be configured via the Cross.toml file. However, we would also like to be able to specify this configuration via environment variables.
What to do
- Each configuration entry allowed in Cross.toml should be overrided by a corresponding environment variable, if set. If the configuration entry is named
build.env.passthrough
then its environment variable counterpart will be namedCROSS_BUILD_ENV_PASSTHROUGH
. If the configuration entry takes a list of strings as value then the env variable value will be parsed as a list of space separated strings.
References
- The Cross.toml parsing logic is in
src/main.rs
, in theimpl Toml
block. - Cargo has a similar behavior. You'll probably be able to borrow some logic from there.
Required for japaric/trust#73