{"id":19045414,"url":"https://github.com/marirs/systeminfo-rs","last_synced_at":"2025-07-12T17:36:59.701Z","repository":{"id":57669181,"uuid":"368040157","full_name":"marirs/systeminfo-rs","owner":"marirs","description":"Rust System Information crate","archived":false,"fork":false,"pushed_at":"2024-12-03T16:47:04.000Z","size":39,"stargazers_count":8,"open_issues_count":3,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-24T05:04:23.629Z","etag":null,"topics":["operating-system","osinfo","rust","rust-crate","rust-lang","rust-library","systeminfo","systeminformation"],"latest_commit_sha":null,"homepage":"","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/marirs.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":"2021-05-17T03:09:01.000Z","updated_at":"2025-04-08T16:58:32.000Z","dependencies_parsed_at":"2024-09-10T17:38:32.574Z","dependency_job_id":"6ec4b331-204f-4dd7-b3b9-dcd720a9a161","html_url":"https://github.com/marirs/systeminfo-rs","commit_stats":{"total_commits":9,"total_committers":2,"mean_commits":4.5,"dds":"0.11111111111111116","last_synced_commit":"8bdca8dd9fda9761faf72e987f865282e8fe77ae"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marirs/systeminfo-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marirs%2Fsysteminfo-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marirs%2Fsysteminfo-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marirs%2Fsysteminfo-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marirs%2Fsysteminfo-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marirs","download_url":"https://codeload.github.com/marirs/systeminfo-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marirs%2Fsysteminfo-rs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265026132,"owners_count":23699893,"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":["operating-system","osinfo","rust","rust-crate","rust-lang","rust-library","systeminfo","systeminformation"],"created_at":"2024-11-08T22:50:10.016Z","updated_at":"2025-07-12T17:36:59.677Z","avatar_url":"https://github.com/marirs.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"systeminfo\n============\n[![Build Status](https://travis-ci.com/marirs/systeminfo-rs.svg?branch=main)](https://travis-ci.com/marirs/systeminfo-rs)\n\nGet the System Hardware \u0026 Operating System information.\n\n## Usage\n```toml\n[dependencies]\nsysteminfo = { git = \"https://github.com/marirs/systeminfo-rs\", branch = \"main\" }\n```\nand then\n```rust\nuse systeminfo;\n\nfn main() {\n    let sysinfo = systeminfo::from_system_hardware();\n    println!(\"{:#?}\", sysinfo);\n\n    let osinfo = systeminfo::from_system_os();\n    println!(\"{:#?}\", osinfo);\n}\n```\n\nIf you want to return the object:\n```rust\nuse systeminfo::{\n    consts::SystemHardware,\n    from_system_hardware\n};\n\nfn get_hw_info() -\u003e SystemHardware {\n    from_system_hardware()\n}\n\nfn main() {\n    println!(\"{:#?}\", get_hw_info())\n}\n```\n\n## Running the example\n```bash\ncargo b --example info\n```\n\n## Example Output\n- macOS\n```bash\nSystemHardware {\n    system_manufacturer: \"Apple\",\n    system_model: \"MacBookPro15,2 (MacBook Pro)\",\n    serial_number: \"C02Z90HQLVDL\",\n    bios: \"1554.60.15.0.0 (iBridge: 18.16.13030.0.0,0)\",\n    physical_memory: \"16 GB\",\n    processor: \"Intel(R) Core(TM) i7-8569U CPU @ 2.80GHz\",\n    architecture: \"x86_64\",\n    processor_vendor: \"GenuineIntel\",\n    processor_physical_cpus: \"4\",\n    processor_logical_cpus: \"8\",\n    processor_features: [\n        \"FPU\",\n        ...\n    ],\n}\nSystemOS {\n    os: \"macOS\",\n    kernel: \"20.2.0\",\n    edition: \"macOS Big Sur\",\n    version: \"11.1\",\n    architecture: \"64-bit\",\n    hostname: \"chocolate\",\n    ip_address: \"192.168.0.115\",\n}\n```\n\n- Linux\n```bash\nSystemHardware {\n    system_manufacturer: \"Raspberry Pi 4 Model B Rev 1.4\",\n    system_model: \"\",\n    serial_number: \"10000000f62c0f0d\",\n    bios: \"\",\n    physical_memory: \"8 GB\",\n    processor: \"Cortex-A72\",\n    architecture: \"aarch64\",\n    processor_vendor: \"ARM\",\n    processor_physical_cpus: \"4\",\n    processor_logical_cpus: \"4\",\n    processor_features: [\n        \"FP\",\n        ...\n    ],\n}\nSystemOS {\n    os: \"Ubuntu\",\n    kernel: \"Linux 5.11.0-1008-raspi\",\n    edition: \"HIRSUTE\",\n    version: \"21.04 (Hirsute Hippo)\",\n    architecture: \"64-bit\",\n    hostname: \"chocolate\",\n    ip_address: \"192.168.0.116\",\n}\n```\n- Windows\n```bash\nSystemHardware {\n    system_manufacturer: \"VMware, Inc.\",\n    system_model: \"VMware Virtual Platform\",\n    serial_number: \"43 2e 97 b3 5e\",\n    bios: \"PhoenixBIOS 4.0 Release 6.0 (Wed, 22 Jul 2020 00:00:00 +0000)\",\n    physical_memory: \"2.15 GB\",\n    processor: \"Intel(R) Core(TM) i7-8569U CPU @ 2.80GHz\",\n    architecture: \"X86-based PC\",\n    processor_vendor: \"GenuineIntel\",\n    processor_physical_cpus: \"1\",\n    processor_logical_cpus: \"2\",\n    processor_features: [],\n}\nSystemOS {\n    os: \"Microsoft Windows\",\n    kernel: \"19041\",\n    edition: \"Windows 10 Pro\",\n    version: \"10.0.19041\",\n    architecture: \"32-bit\",\n    hostname: \"DESKTOP-G089JUF\",\n    ip_address: \"192.168.0.114\",\n}\n```\n\n## Requirements\n- Rust 1.52+\n\n## Supports \u0026 Tested on\n- macOS\n- Windows\n- Linux\n\n---\nLicense: MIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarirs%2Fsysteminfo-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarirs%2Fsysteminfo-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarirs%2Fsysteminfo-rs/lists"}