1 unstable release

0.1.0 Jun 19, 2024

#490 in Operating systems

31 downloads per month
Used in 2 crates (via rqjs-ext)

MIT license

3KB

cross-uname

Get name and information about current kernel by uname command

use cross_uname::uname;

fn main() {
    let info = uname().unwrap();
    // Print the hostname
    println!("{}", info.nodename);
    // Print everything
    println!("{:?}", info);
}

No runtime deps