2 releases

Uses old Rust 2015

0.1.1 Oct 11, 2016
0.1.0 Oct 10, 2016

#400 in Unix APIs

Download history 183330/week @ 2024-11-15 142246/week @ 2024-11-22 163097/week @ 2024-11-29 172380/week @ 2024-12-06 179267/week @ 2024-12-13 71755/week @ 2024-12-20 85300/week @ 2024-12-27 150997/week @ 2025-01-03 175180/week @ 2025-01-10 160210/week @ 2025-01-17 152276/week @ 2025-01-24 173682/week @ 2025-01-31 187396/week @ 2025-02-07 161095/week @ 2025-02-14 185197/week @ 2025-02-21 150786/week @ 2025-02-28

719,499 downloads per month
Used in 100 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

~43KB