Roy Ivy III 10ce9df40f maint/dev ~ add git mailmap (improves commit history accuracy)
- `git shortlog -se -n --all` # review all commit authors/emails
- `git shortlog -se -n --all --no-merges` # ... same with merge commit statistics excluded

- ref: [`git` ~ display project devs](https://stackoverflow.com/questions/9597410/list-all-developers-on-a-project-in-git) @@ <https://archive.is/ZbVJP>
2023-05-29 00:24:15 -05:00
2018-03-11 05:33:21 -07:00
2023-05-27 19:04:10 +02:00
2023-02-13 22:16:00 -06:00
2023-05-28 15:19:55 -05:00
2023-03-24 09:30:08 +00:00

platform-info

Crates.io License CodeCov

A simple cross-platform way to get information about the currently running system.

Examples

This simple example:

// examples/ex.rs
// * use `cargo run --example ex` to execute this example

// spell-checker:ignore (API) nodename osname sysname

use platform_info::*;

fn main() {
    let info = PlatformInfo::new().expect("Unable to determine platform info");
    // println!("info={:#?}", info);

    println!("{}", info.sysname().to_string_lossy());
    println!("{}", info.nodename().to_string_lossy());
    println!("{}", info.release().to_string_lossy());
    println!("{}", info.version().to_string_lossy());
    println!("{}", info.machine().to_string_lossy());
    println!("{}", info.osname().to_string_lossy());
}

should display something like:

Linux
hostname
5.10.0-8-amd64
#1 SMP Debian 5.10.46-4 (2021-08-03)
x86_64
GNU/Linux

Using cargo run --example ex will build and execute this example code.

Other examples can be found in the examples directory.

License

platform-info is licensed under the MIT License.

S
Description
Languages
Rust 100%