- Rust Standard Library Cookbook
- Jan Nils Ferner Daniel Durante
- 52字
- 2021-08-27 19:45:07
Interacting with environment variables
According to the Twelve-Factor App (https://12factor.net/), you should store your configuration in the environment (https://12factor.net/config). This means that you should pass values that could change between deployments, such as ports, domains, or database handles, as environment variables. Many programs also use environment variables to communicate with each other.