| Crates.io | uname-rs |
| lib.rs | uname-rs |
| version | 0.1.1 |
| created_at | 2021-05-01 15:44:31.671278+00 |
| updated_at | 2021-05-04 14:03:35.381786+00 |
| description | No dependency, panic-less implementation of the POSIX utsname header and struct in Rust. |
| homepage | |
| repository | https://github.com/caverym/uname-rs |
| max_upload_size | |
| id | 391934 |
| size | 14,871 |
No dependency, panic-less implementation of the POSIX utsname header and struct in Rust.
Taken from my project rfetch
use std::io::Result;
use uname_rs::Uname;
fn main() -> Result<()> {
let uts = Uname::new()?;
println!("{}", uts.sysname);
Ok(())
}