Function is_wsl::is_wsl

source ·
pub fn is_wsl() -> bool
Examples found in repository?
examples/main.rs (line 3)
2
3
4
5
6
7
8
fn main() {
    if is_wsl::is_wsl() {
        println!("Currently in WSL")
    } else {
        println!("Currently NOT in WSL")
    }
}