cross-uname 0.1.0

cross-uname
Documentation
  • Coverage
  • 0%
    0 out of 10 items documented0 out of 3 items with examples
  • Size
  • Source code size: 2.63 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.4 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • ahaoboy/cross-uname
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • ahaoboy

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);
}