2 releases

Uses old Rust 2015

0.1.1 Oct 11, 2016
0.1.0 Oct 10, 2016

#457 in Unix APIs

Download history 109736/week @ 2024-07-21 114114/week @ 2024-07-28 110603/week @ 2024-08-04 119253/week @ 2024-08-11 122611/week @ 2024-08-18 134868/week @ 2024-08-25 118392/week @ 2024-09-01 133708/week @ 2024-09-08 120148/week @ 2024-09-15 137455/week @ 2024-09-22 148439/week @ 2024-09-29 153613/week @ 2024-10-06 166620/week @ 2024-10-13 160863/week @ 2024-10-20 163783/week @ 2024-10-27 157924/week @ 2024-11-03

656,025 downloads per month
Used in 99 crates (26 directly)

MIT/Apache

7KB

rust-uname

Name and information about current kernel

Dashboard

Linux CI Test Coverage Crate Documentation
Build Status Coverage Status 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

~44KB