2 releases

Uses old Rust 2015

0.1.1 Oct 11, 2016
0.1.0 Oct 10, 2016

#431 in Unix APIs

Download history 171950/week @ 2025-05-26 192327/week @ 2025-06-02 178512/week @ 2025-06-09 184750/week @ 2025-06-16 195763/week @ 2025-06-23 177320/week @ 2025-06-30 209529/week @ 2025-07-07 189564/week @ 2025-07-14 195035/week @ 2025-07-21 194661/week @ 2025-07-28 191411/week @ 2025-08-04 212400/week @ 2025-08-11 213443/week @ 2025-08-18 208623/week @ 2025-08-25 197656/week @ 2025-09-01 209642/week @ 2025-09-08

835,426 downloads per month
Used in 103 crates (27 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

~43KB