Rust Standard Library Cookbook
上QQ阅读APP看书,第一时间看更新

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.