Получите название OS Rust

use std::env;

println!("{}", env::consts::OS);
Ahmad Khaefi