{"id":14235620,"url":"https://github.com/uutils/platform-info","last_synced_at":"2025-05-15T17:01:39.010Z","repository":{"id":30382969,"uuid":"124752570","full_name":"uutils/platform-info","owner":"uutils","description":"A cross-platform way to get information about your machine","archived":false,"fork":false,"pushed_at":"2025-05-15T08:41:43.000Z","size":215,"stargazers_count":97,"open_issues_count":1,"forks_count":28,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-05-15T09:39:40.817Z","etag":null,"topics":["cross-platform","information-retrieval","rust","uname"],"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/uutils.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-03-11T12:07:34.000Z","updated_at":"2025-05-15T08:41:45.000Z","dependencies_parsed_at":"2024-01-22T11:32:14.176Z","dependency_job_id":"d376914e-0d7c-4f71-b403-8e4d3645b27e","html_url":"https://github.com/uutils/platform-info","commit_stats":{"total_commits":93,"total_committers":13,"mean_commits":7.153846153846154,"dds":0.6021505376344086,"last_synced_commit":"009acd5ef9ca820fcccd5a06aa9dbad1e21ac6c0"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uutils%2Fplatform-info","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uutils%2Fplatform-info/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uutils%2Fplatform-info/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uutils%2Fplatform-info/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uutils","download_url":"https://codeload.github.com/uutils/platform-info/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254318994,"owners_count":22051064,"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":["cross-platform","information-retrieval","rust","uname"],"created_at":"2024-08-20T21:02:09.446Z","updated_at":"2025-05-15T17:01:38.878Z","avatar_url":"https://github.com/uutils.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# platform-info\n\n\u003c!-- spell-checker:ignore (API) nodename osname sysname (rust) println --\u003e\n\n[![Crates.io](https://img.shields.io/crates/v/platform-info.svg)](https://crates.io/crates/platform-info)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n[![CodeCov](https://codecov.io/gh/uutils/platform-info/branch/main/graph/badge.svg)](https://codecov.io/gh/uutils/platform-info/tree/main)\n\nA simple cross-platform way to get information about the currently running system.\n\n## Examples\n\nThis simple example:\n\n```rust\n// examples/ex.rs\n// * use `cargo run --example ex` to execute this example\n\n// spell-checker:ignore (API) nodename osname sysname\n\nuse platform_info::*;\n\nfn main() {\n    let info = PlatformInfo::new().expect(\"Unable to determine platform info\");\n    // println!(\"info={:#?}\", info);\n\n    println!(\"{}\", info.sysname().to_string_lossy());\n    println!(\"{}\", info.nodename().to_string_lossy());\n    println!(\"{}\", info.release().to_string_lossy());\n    println!(\"{}\", info.version().to_string_lossy());\n    println!(\"{}\", info.machine().to_string_lossy());\n    println!(\"{}\", info.osname().to_string_lossy());\n}\n```\n\nshould display something like:\n\n```text\nLinux\nhostname\n5.10.0-8-amd64\n#1 SMP Debian 5.10.46-4 (2021-08-03)\nx86_64\nGNU/Linux\n```\n\n\u003e Using `cargo run --example ex` will build and execute this [example code](examples/ex.rs).\n\nOther examples can be found in the [examples](examples) directory.\n\n## License\n\n`platform-info` is licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuutils%2Fplatform-info","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuutils%2Fplatform-info","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuutils%2Fplatform-info/lists"}