Crates.io | cross-uname |
lib.rs | cross-uname |
version | 0.1.0 |
source | src |
created_at | 2024-06-19 07:15:17.448018 |
updated_at | 2024-06-19 07:15:17.448018 |
description | cross-uname |
homepage | https://github.com/ahaoboy/cross-uname |
repository | https://github.com/ahaoboy/cross-uname |
max_upload_size | |
id | 1276601 |
size | 3,105 |
Get name and information about current kernel by uname command
use cross_uname::uname;
fn main() {
let info = uname().unwrap();
// Print the hostname
println!("{}", info.nodename);
// Print everything
println!("{:?}", info);
}