2 releases
0.1.1 | May 4, 2021 |
---|---|
0.1.0 | May 1, 2021 |
#895 in Unix APIs
2,848 downloads per month
Used in 4 crates
(via bpf-compatible-rs)
6KB
53 lines
Uname-rs
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(())
}