schultyy / os_type

Rust library to detect the operating system type
MIT License
30 stars 18 forks source link

WSL Support #31

Open sergeysova opened 5 years ago

schultyy commented 5 years ago

@sergeysova hi!

Can you elaborate a bit what you have in mind with WSL support?

sergeysova commented 5 years ago

@schultyy Ability to know is an application running under WSL.

os_type::is_wsl()

You can use https://github.com/sindresorhus/is-wsl

schultyy commented 5 years ago

Hmm I see. I'm currently not actively developing this library. If this is a feature that would help you I encourage you to send a pull request for this :)

sergeysova commented 5 years ago

Please, add labels to issue

Dentosal commented 5 years ago

Here is a rust implementation I wrote some time ago: https://crates.io/crates/wsl. Easy to either depend on, or just copy the code to this project.