/
View dependency graph
Depends on
- debhelper (debhelper)
- dh-cargo (dh-cargo)
- rust-is-docker (librust-is-docker-0.2+default-dev)
- rust-once-cell (librust-once-cell-1+default-dev)
- cargo, libstd-rust-dev, rustc
README (full)
is-wsl
Check if the process is running inside Windows Subsystem for Linux (Bash on Windows)
Inspired by sindresorhus/is-wsl and made for Rust lang.
Can be useful if you need to work around unimplemented or buggy features in WSL. Supports both WSL 1 and WSL 2.
Usage
$> cargo add is-wsl
main.rs
use is_wsl::is_wsl
fn main() {
if is_wsl() {
// Do some WSL related stuff 🎇
} else {
// Do some different things! <3
}
}
| dir | .github/ |
| dir | debian/ |
| dir | examples/ |
| dir | src/ |
| file | .cargo_vcs_info.json |
| file | .gitignore |
| file | Cargo.lock |
| file | Cargo.toml |
| file | Cargo.toml.orig |
| file | LICENSE |
| file | README.md |