#platform #info #system

platform-info

A simple cross-platform interface to get info about a system

3 releases (breaking)

new 0.2.0 Nov 28, 2021
0.1.0 Feb 14, 2021
0.0.1 Jul 27, 2018

#26 in Operating systems

Download history 3199/week @ 2021-08-13 6542/week @ 2021-08-20 5248/week @ 2021-08-27 4015/week @ 2021-09-03 6680/week @ 2021-09-10 4580/week @ 2021-09-17 1736/week @ 2021-09-24 3504/week @ 2021-10-01 4534/week @ 2021-10-08 2194/week @ 2021-10-15 2708/week @ 2021-10-22 2853/week @ 2021-10-29 3192/week @ 2021-11-05 3407/week @ 2021-11-12 2879/week @ 2021-11-19 2823/week @ 2021-11-26

12,980 downloads per month
Used in 5 crates

MIT license

22KB
484 lines

platform-info

License Build status CodeCov

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.

Dependencies

~57KB