2 releases

Uses old Rust 2015

0.1.1 Oct 11, 2016
0.1.0 Oct 10, 2016

#135 in Operating systems

Download history 94800/week @ 2023-10-18 97376/week @ 2023-10-25 98022/week @ 2023-11-01 89004/week @ 2023-11-08 103913/week @ 2023-11-15 85667/week @ 2023-11-22 96944/week @ 2023-11-29 99278/week @ 2023-12-06 99737/week @ 2023-12-13 67081/week @ 2023-12-20 44886/week @ 2023-12-27 96053/week @ 2024-01-03 88875/week @ 2024-01-10 101001/week @ 2024-01-17 102767/week @ 2024-01-24 80694/week @ 2024-01-31

390,850 downloads per month
Used in 66 crates (24 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

~42KB