2 releases

Uses old Rust 2015

0.1.1 Oct 11, 2016
0.1.0 Oct 10, 2016

#529 in Unix APIs

Download history 58729/week @ 2024-12-22 93409/week @ 2024-12-29 169172/week @ 2025-01-05 170481/week @ 2025-01-12 155398/week @ 2025-01-19 152356/week @ 2025-01-26 182551/week @ 2025-02-02 184262/week @ 2025-02-09 158608/week @ 2025-02-16 187089/week @ 2025-02-23 176553/week @ 2025-03-02 181224/week @ 2025-03-09 175625/week @ 2025-03-16 182161/week @ 2025-03-23 200984/week @ 2025-03-30 211610/week @ 2025-04-06

780,861 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