use std::io::prelude::*; fn main() { let mut file = std::fs::OpenOptions::new() .append(true) .create(true) .open(format!("{}/vars.txt", std::env::var("OUT_DIR").unwrap())) .unwrap(); for (key, value) in std::env::vars() { writeln!(file, "{} = {}", key, value).unwrap(); } writeln!(file, "\nworkspace_windows_dir = {}", windows_gen::workspace_windows_dir().to_str().unwrap()).unwrap(); }