fn main() { if cfg!(target_os = "linux") { // Do something } }