2 releases
Uses old Rust 2015
0.1.1 | Oct 11, 2016 |
---|---|
0.1.0 | Oct 10, 2016 |
#457 in Unix APIs
656,025 downloads per month
Used in 99 crates
(26 directly)
7KB
rust-uname
Name and information about current kernel
Dashboard
Linux CI | Test Coverage | Crate | Documentation |
---|---|---|---|
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:
- Apache License, Version 2.0 - LICENSE-APACHE (source)
- MIT license - (LICENSE-MIT (source)
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
~44KB