{"id":15973393,"url":"https://github.com/DhanushNehru/runtime_environment","last_synced_at":"2025-10-20T14:31:43.679Z","repository":{"id":243256554,"uuid":"811912952","full_name":"DhanushNehru/runtime_environment","owner":"DhanushNehru","description":"A rust package to check runtime environment using Rust","archived":false,"fork":false,"pushed_at":"2024-06-07T15:47:06.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T07:16:32.480Z","etag":null,"topics":["crate-solutions","crates","crates-io","crates-of-the-week","cratesio","environment","hacktobefest2024","hacktoberfest","hacktoberfest-accepted","opensource","package-manager","packages","runtime","runtime-environment","rust","rust-crate","rust-crates","rust-lang","rust-library","rustlang"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/runtime_environment","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/DhanushNehru.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["DhanushNehru"],"patreon":"dhanushnehru","open_collective":null,"ko_fi":"dhanushnehru","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2024-06-07T14:50:24.000Z","updated_at":"2024-11-16T11:10:17.000Z","dependencies_parsed_at":"2024-06-07T16:59:21.273Z","dependency_job_id":"693f07cf-0735-40a0-aca2-3223f47844f1","html_url":"https://github.com/DhanushNehru/runtime_environment","commit_stats":null,"previous_names":["dhanushnehru/runtime-environment"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DhanushNehru%2Fruntime_environment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DhanushNehru%2Fruntime_environment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DhanushNehru%2Fruntime_environment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DhanushNehru%2Fruntime_environment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DhanushNehru","download_url":"https://codeload.github.com/DhanushNehru/runtime_environment/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237348765,"owners_count":19295416,"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":["crate-solutions","crates","crates-io","crates-of-the-week","cratesio","environment","hacktobefest2024","hacktoberfest","hacktoberfest-accepted","opensource","package-manager","packages","runtime","runtime-environment","rust","rust-crate","rust-crates","rust-lang","rust-library","rustlang"],"created_at":"2024-10-07T21:04:46.066Z","updated_at":"2025-10-20T14:31:38.381Z","avatar_url":"https://github.com/DhanushNehru.png","language":"Rust","readme":"# runtime_environment\n\nA Rust library to check the operating system at runtime.\n\n## Installation\n\nIn your `Cargo.toml`, add the following line under the `[dependencies]` section:\n\n```rust\nruntime_environment = \"0.1.0\"\n```\n\n## Usage\nThis is an example usage someone might do:\n\n```rust\nuse runtime_environment::{is_mac_os, is_windows, is_linux};\n\nfn main() {\n    if is_mac_os() {\n        println!(\"Running on macOS\");\n    } else if is_windows() {\n        println!(\"Running on Windows\");\n    } else if is_linux() {\n        println!(\"Running on Linux\");\n    } else {\n        println!(\"Running on an unknown OS\");\n    }\n}\n```\n## Functions\n\nis_mac_os() -\u003e bool\n\nReturns true if the operating system is macOS.\n\nis_windows() -\u003e bool\n\nReturns true if the operating system is Windows.\n\nis_linux() -\u003e bool\n\nReturns true if the operating system is Linux.\n\n## Testing\nTo run the tests, use the following command:\n\n```rust\ncargo test\n```\n\n## License\n\nThis project is licensed under the MIT License.\n\nReplace `\"0.1.0\"` with the actual version number of your package when you publish it. \n\nThis `README.md` file provides a clear overview of the library, installation instructions, example usage, and information on the available functions.\n\n## Gitpod\n\nIn the cloud-free development runtime_environment where you can directly start coding.\n\nYou can use Gitpod in the cloud  [![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/DhanushNehru/runtime_environment/)\n\n----\n\nFeel free to update the README.md or raise issues if any to enhance the project\n","funding_links":["https://github.com/sponsors/DhanushNehru","https://patreon.com/dhanushnehru","https://ko-fi.com/dhanushnehru"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDhanushNehru%2Fruntime_environment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FDhanushNehru%2Fruntime_environment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDhanushNehru%2Fruntime_environment/lists"}