{"id":16948290,"url":"https://github.com/dentosal/wsl-rs","last_synced_at":"2025-03-22T13:31:10.489Z","repository":{"id":48036114,"uuid":"191630693","full_name":"Dentosal/wsl-rs","owner":"Dentosal","description":"Detect if the program is running under Windows Subsystem for Linux","archived":false,"fork":false,"pushed_at":"2022-08-27T22:59:44.000Z","size":2,"stargazers_count":5,"open_issues_count":5,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-24T15:13:25.586Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Dentosal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-12T19:15:37.000Z","updated_at":"2023-06-06T20:36:02.000Z","dependencies_parsed_at":"2022-08-12T17:11:13.920Z","dependency_job_id":null,"html_url":"https://github.com/Dentosal/wsl-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dentosal%2Fwsl-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dentosal%2Fwsl-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dentosal%2Fwsl-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dentosal%2Fwsl-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dentosal","download_url":"https://codeload.github.com/Dentosal/wsl-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244962789,"owners_count":20539226,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T21:50:15.790Z","updated_at":"2025-03-22T13:31:10.250Z","avatar_url":"https://github.com/Dentosal.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Detect if the code is ran under Windows Subsystem for Linux\n\n[![On crates.io](https://img.shields.io/crates/v/wsl.svg)](https://crates.io/crates/wsl)\n\n## Usage\n\n`wsl::is_wsl()` returns true under WSL, false otherwise.\n\n## Method\n\n[A semi-official source](https://github.com/microsoft/WSL/issues/423#issuecomment-221627364) lists some pointers. We are going to use the simplest approach here: Testing if `/proc/sys/kernel/osrelease` contains string `Microsoft` or `WSL`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdentosal%2Fwsl-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdentosal%2Fwsl-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdentosal%2Fwsl-rs/lists"}