rust-mobile / cargo-subcommand

Library for implementing cargo subcommands
6 stars 6 forks source link

config: Read environment variables from `[env]` section in `config.toml` #12

Closed MarijnS95 closed 2 years ago

MarijnS95 commented 2 years ago

Environment variables can be set and optionally override the process environment through .cargo/config.toml's [env] section: https://doc.rust-lang.org/cargo/reference/config.html#env

These config variables have specific precedence rules with regards to overriding the environment set in the process, and can optionally represent paths relative to the parent of the containing .cargo/ folder.

MarijnS95 commented 2 years ago

Glad I got the CI merged first :grimacing: - already coming in clutch.

MarijnS95 commented 2 years ago

Published as 0.6 since we have at least breaking changes in the public error type.