2 releases

Uses old Rust 2015

0.1.1 Oct 11, 2016
0.1.0 Oct 10, 2016

#370 in Operating systems

Download history 95173/week @ 2023-12-17 37209/week @ 2023-12-24 77214/week @ 2023-12-31 97204/week @ 2024-01-07 90231/week @ 2024-01-14 101369/week @ 2024-01-21 100662/week @ 2024-01-28 98049/week @ 2024-02-04 97390/week @ 2024-02-11 83731/week @ 2024-02-18 104528/week @ 2024-02-25 97274/week @ 2024-03-03 99403/week @ 2024-03-10 100884/week @ 2024-03-17 105066/week @ 2024-03-24 103553/week @ 2024-03-31

413,189 downloads per month
Used in 73 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

~42KB