2 releases

Uses old Rust 2015

0.1.1 Oct 11, 2016
0.1.0 Oct 10, 2016

#284 in Operating systems

Download history 100763/week @ 2024-03-14 97201/week @ 2024-03-21 111205/week @ 2024-03-28 96401/week @ 2024-04-04 98916/week @ 2024-04-11 100167/week @ 2024-04-18 95645/week @ 2024-04-25 102558/week @ 2024-05-02 104976/week @ 2024-05-09 112706/week @ 2024-05-16 99115/week @ 2024-05-23 102676/week @ 2024-05-30 106615/week @ 2024-06-06 106422/week @ 2024-06-13 105030/week @ 2024-06-20 91728/week @ 2024-06-27

430,333 downloads per month
Used in 89 crates (25 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