wsl 0.1.0

Detect if the program is running under Windows Subsystem for Linux
Documentation
1
2
3
4
5
6
7
fn main() {
    if wsl::is_wsl() {
        println!("Yes");
    } else {
        println!("No");
    }
}