{"repo":"GuillaumeGomez/sysinfo","free":true,"listed":false,"github":"https://github.com/GuillaumeGomez/sysinfo","clone":"git clone https://github.com/GuillaumeGomez/sysinfo.git","description":"Cross-platform library to fetch system information","language":"Rust","stars":2736,"topics":["rust","system","unix","linux","raspberry","windows","macos"],"license":"MIT","category":"mobile-apps","readme_excerpt":"sysinfo [![][img crates]][crates] [![][img doc]][doc] sysinfo is a crate used to get a system's information. Supported OSes It currently supports the following OSes (alphabetically sorted): Android FreeBSD NetBSD iOS Linux macOS Raspberry Pi Windows You can still use sysinfo on non-supported OSes, it'll simply do nothing and always return empty values. You can check in your program directly if an OS is supported by checking the [ IS SUPPORTED SYSTEM ] constant. The minimum-supported version of rustc is 1.95 . Usage If you want to migrate from an older version, don't hesitate to take a look at the CHANGELOG and at the migration guide. ⚠️ Before any attempt to read the different structs' information, you need to update them to get up-to-date information because for most of them, it works on diff between the current value and the old one. Which is why, it's much better to keep the same instance of [ System ] around instead of recreating it multiple times. You have an example into the examples folder. You can run it with cargo run --example simple . Otherwise, here is a little code sample: Please remember that to have some up-to-date information, you need to call the equivalent refresh method. For example, for the CPU usage: With the multithread feature (which is not enabled by default), sysinfo uses multiple threads. However, this can increase the memory usage on some platforms (macOS for example). Good practice / Performance tips Most of the time, you don't want all information","default_branch":null,"files":null,"tree":[],"storefront":"/r/GuillaumeGomez","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/GuillaumeGomez/sysinfo/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}