Sylvestre Ledru c8601460c0 Merge pull request #18 from sylvestre/win-clippy
Coverage & Fix a windows clippy warning (set_len)
2022-04-15 22:58:19 +02:00
2018-03-11 05:33:21 -07:00
2018-03-11 05:33:21 -07:00
2022-04-15 22:31:51 +02:00
2022-04-15 22:31:51 +02:00
2021-11-28 14:07:05 +01:00

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.

S
Description
Languages
Rust 100%