how to check for os in rust
// rust programming language
if cfg!(windows) {
println!("this is windows");
} else if cfg!(unix) {
println!("this is unix alike");
}
//you can also use #[cfg(target_os="my_os")] or just #[cfg(my_os)]
how to check for os in rust
// rust programming language
if cfg!(windows) {
println!("this is windows");
} else if cfg!(unix) {
println!("this is unix alike");
}
//you can also use #[cfg(target_os="my_os")] or just #[cfg(my_os)]
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us