1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
// Bilgi - Cross-platform system information crate in Rust. // // Bilgi can take these informations (work-in-progress): // * OS // * Kernel // * Username // * Hostname // // MIT License // // Copyright (c) 2021 Ferhat Geçdoğan All Rights Reserved. // Distributed under the terms of the MIT License. // // pub mod system; pub mod helpers; #[cfg(test)] mod tests { #[test] fn system_infos() { let infos = crate::system::sys::init(); println!( "\ OS : {}\n\ Kernel : {}\n\ Username: {}\n\ Hostname: {}", infos.os_name, infos.kernel, infos.username, infos.hostname ); } }