mirror of
https://github.com/uutils/platform-info.git
synced 2026-06-10 15:48:45 -07:00
88b5cbd2cfd85111858cf7c0569526c74037715c
platform-info
A simple cross-platform way to get information about the currently running system.
Example
This simple example:
use platform_info::*;
fn main() {
let uname = PlatformInfo::new().unwrap();
println!("{}", uname.sysname());
println!("{}", uname.nodename());
println!("{}", uname.release());
println!("{}", uname.version());
println!("{}", uname.machine());
}
should return something like:
Linux
hostname
5.10.0-8-amd64
#1 SMP Debian 5.10.46-4 (2021-08-03)
x86_64
License
platform-info is licensed under the MIT License - see the LICENSE file for details.
Description
Languages
Rust
100%