Function std::os::setenv

pub fn setenv(n: &str, v: &str)

Sets the environment variable n to the value v for the currently running process