Returns the value of an environment variable during compilation.
Not to be confused with env, which can be used to access environment variables at runtime.
Example
use std::env;
let build_host = env!("HOSTNAME");
println!("This program was built on {}", build_host);
Run this example