Sylvestre Ledru 1b777493a0 Version 1.0.1
2022-11-08 21:36:49 +01:00
2018-03-11 05:33:21 -07:00
2022-08-19 09:52:29 +02:00
2018-03-11 05:33:21 -07:00
2022-04-15 22:31:51 +02:00
2022-11-08 21:36:49 +01:00
2022-11-08 21:35:15 +01:00

platform-info

Crates.io License 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.

S
Description
Languages
Rust 100%