| Crates.io | wsl |
| lib.rs | wsl |
| version | 0.1.0 |
| created_at | 2019-06-12 19:16:33.480863+00 |
| updated_at | 2019-06-12 19:16:33.480863+00 |
| description | Detect if the program is running under Windows Subsystem for Linux |
| homepage | |
| repository | https://github.com/Dentosal/wsl-rs |
| max_upload_size | |
| id | 140648 |
| size | 3,547 |
wsl::is_wsl() returns true under WSL, false otherwise.
A semi-official source lists some pointers. We are going to use the simplest approach here: Testing if /proc/sys/kernel/osrelease contains string Microsoft or WSL.