做 爱 网站小视频,雄安网站建设多少钱,淘宝上网站建设是什么,微博同步到wordpress大家对我真不错#xff0c;0.1.6版发布才两天#xff0c;阅读量已超600。感谢#xff0c;我的运气真好。
以后会继续带给 Rust爱好者 更多的好东西。
get_local_info是一个获取linux本地信息的Rust三方库#xff0c;其目标是降低获取本地linux系统信息的难度。支持银河麒…大家对我真不错0.1.6版发布才两天阅读量已超600。感谢我的运气真好。
以后会继续带给 Rust爱好者 更多的好东西。
get_local_info是一个获取linux本地信息的Rust三方库其目标是降低获取本地linux系统信息的难度。支持银河麒麟10、UOS、鸿蒙等国产系统。
项目维护长期
当前版本0.1.7
当前功能
1.网络功能
1.1获取活动网卡信息网卡IPv4IPv6mac
1.2.获取网络接口信息
2.获取系统版本
Kylin10支持2017及以上版本
Ubuntu支持22.04及以上版本
UOS20支持1020及以上版本
3.进程检测虚拟机检测双系统检测
4.信息安全检测
获取天融信反病毒库时间
怎么使用
执行cargo add get_local_info然后导入调用接口
extern crate get_local_info;fn main() {println!({}, get_local_info::get_pc_net_card_name());println!({}, get_local_info::get_pc_ipv4());println!({}, get_local_info::get_pc_ipv6());println!({}, get_local_info::get_pc_mac());println!({:?}, get_local_info::get_pc_net_card_info());// osname: ubuntu or uos or kylinlet osname uos;println!({}, get_local_info::get_pc_system_ver(osname));//check proccess namelet pname gnome;println!({}, get_local_info::get_pc_system_check_pname(pname));// flase is Real machine, true is vmprintln!(Running in VM:{}, get_local_info::get_pc_system_is_vm());// true is multi osprintln!(multi os:{}, get_local_info::get_pc_system_is_d_sys());// Obtain the update time of the antivirus databaselet antiname topsec;println!({}, get_local_info::get_pc_check_antiviruslib(antiname));
}About the Author * Liu Qiang in Wuhan, China * crates: https://crates.io/crates/get_local_info * github: https://github.com/daijianshusheng/rs_libGetDeviceInfo * mail: liulcsyqq.com * Created on 2023.12.28