use recursive_env::var; use std::env; fn main() { env::set_var("TEST1", "test1"); env::set_var("TEST2", "${TEST1} test 2"); for (key, _) in env::vars() { let fixed = var(&key).unwrap(); println!("{key}: {fixed}"); } }