{"id":24535291,"url":"https://github.com/icelain/rin","last_synced_at":"2025-04-14T23:10:11.845Z","repository":{"id":44710294,"uuid":"450858058","full_name":"Icelain/rin","owner":"Icelain","description":"A small rust library to fetch system information on linux","archived":false,"fork":false,"pushed_at":"2024-07-23T07:49:41.000Z","size":44,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T23:10:00.699Z","etag":null,"topics":[],"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/Icelain.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}},"created_at":"2022-01-22T15:34:38.000Z","updated_at":"2024-07-23T07:49:44.000Z","dependencies_parsed_at":"2024-07-23T09:41:48.697Z","dependency_job_id":null,"html_url":"https://github.com/Icelain/rin","commit_stats":{"total_commits":22,"total_committers":1,"mean_commits":22.0,"dds":0.0,"last_synced_commit":"a67719336e1f4e0093cf0f7f42f6d6d101c900e0"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Icelain%2Frin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Icelain%2Frin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Icelain%2Frin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Icelain%2Frin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Icelain","download_url":"https://codeload.github.com/Icelain/rin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248975316,"owners_count":21192210,"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":"2025-01-22T12:16:58.790Z","updated_at":"2025-04-14T23:10:11.826Z","avatar_url":"https://github.com/Icelain.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Rust Docs](https://img.shields.io/badge/docs-rin%20documentation-blue)](https://docs.rs/rin-sys/0.1.0/rin_sys/)\n\n# rin\nA small rust library to fetch system information on linux\n\n# Installation\n\nAdd ``` rin-sys = \"0.1.4\" ``` to your Cargo.toml\n\n# Usage\n\n```rust\n\nlet ram_info = rin_sys::get_ram_info();\nlet cpu_info = rin_sys::get_cpu_info();\n\n```\n\nRAM info struct -\n\n ```rust\n #[derive(Default, Debug)]\npub struct RamInfo {\n    pub mem_used: usize,\n    pub mem_free: usize,\n    pub mem_total: usize,\n    pub percent_free: f32,\n    pub percent_used: f32,\n}\n ```\n \n CPU info struct - \n ```rust\n #[derive(Debug, Default)]\npub struct CpuInfo {\n    pub cache_size: String,\n    pub cores: usize,\n    pub cpu_speed: Vec\u003c(usize, f64)\u003e,\n    pub model_name: String,\n    pub vendor_id: String,\n    pub is_fpu: bool,\n    pub cpuid_level: f32,\n}\n ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficelain%2Frin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficelain%2Frin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficelain%2Frin/lists"}