2 releases

Uses old Rust 2015

0.1.1 Oct 11, 2016
0.1.0 Oct 10, 2016

#112 in Unix APIs

Download history 18695/week @ 2021-02-26 17952/week @ 2021-03-05 32893/week @ 2021-03-12 25766/week @ 2021-03-19 26807/week @ 2021-03-26 23104/week @ 2021-04-02 30356/week @ 2021-04-09 30531/week @ 2021-04-16 24913/week @ 2021-04-23 18574/week @ 2021-04-30 29998/week @ 2021-05-07 30164/week @ 2021-05-14 29039/week @ 2021-05-21 28826/week @ 2021-05-28 36943/week @ 2021-06-04 26286/week @ 2021-06-11

106,290 downloads per month
Used in 39 crates (17 directly)

MIT/Apache

7KB

rust-uname

Name and information about current kernel

Dashboard

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

License

Licensed under:

Contribution

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.

Dependencies

~28KB