2 releases

Uses old Rust 2015

0.1.1 Oct 11, 2016
0.1.0 Oct 10, 2016

#307 in Operating systems

Download history 97495/week @ 2024-03-04 99582/week @ 2024-03-11 101706/week @ 2024-03-18 103951/week @ 2024-03-25 104365/week @ 2024-04-01 97105/week @ 2024-04-08 96167/week @ 2024-04-15 99718/week @ 2024-04-22 100965/week @ 2024-04-29 99007/week @ 2024-05-06 111384/week @ 2024-05-13 111387/week @ 2024-05-20 95215/week @ 2024-05-27 104001/week @ 2024-06-03 111662/week @ 2024-06-10 95240/week @ 2024-06-17

409,216 downloads per month
Used in 88 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