uname 0.1.1

Name and information about current kernel


Name and information about current kernel


Linux CI Test Coverage Crate Documentation
Build Status Coverage Status Crate Docs

Basic usage

extern crate uname;

use uname::uname;

fn main() {
    let info = uname().unwrap();

    // Print the hostname
    println!("{}", info.hostname);
    // Print everything
    println!("{:?}", info);

Don't forget to check out the examples


Licensed under:


Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.