> module
std::env
environment variables and process paths
use std::env; feature env native only
std::env provides access to environment variables and process-related paths.
> functions
The current working directory, or an io::Error if it can't be read.
Set an environment variable for this process and the programs it starts.
> examples
use std::env;
use std::io;
fn main() {
env::set("MY_VAR", "hello");
io::println("MY_VAR = {}", env::get("MY_VAR").unwrap());
io::println("cwd: {}", env::current_dir().unwrap());
}