blob: b3f91f17ae13819caefb9043f1428d99147c2207 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
use std::env::consts::{ARCH, OS};
use sysinfo::System;
fn main() {
println!("Hello, world!");
println!("stuff: {:?} {:?} {:?} {:?} {:?}", System::name(), System::os_version(), System::long_os_version(), System::kernel_version(), System::cpu_arch());
println!("stuff: {:?} {:?} {:?} {}", System::distribution_id(), OS, ARCH, size_of::<*const i32>());
}
|