#wsl #detection #windows #wsl2 #detect

yanked wsl-version

Checks and provides the current version of WSL

6 releases (1 stable)

1.0.0 Jun 2, 2023
0.1.4 Apr 21, 2023

#6 in #wsl2

MIT license

4KB

Checks and provides the current version of wsl

On crates.io

Usage

wsl_version::is_wsl() returns true under WSL, false otherwise.

wsl_version::version() returns a WSL version number.


lib.rs:

Checks and provides the current version of WSL

Usage

wsl_version::is_wsl()
wsl_version::version()

No runtime deps