【My Rust Crate】obtaining Linux system device information
2023-12-29 13:25:16
Project Introduction
-
get_local_info is a Rust crate that obtains linux device information,Its goal is to solve the difficulty of obtaining Linux system device information.Support Chinese operating systems such as KyLin, UOS, HarmonyOS, etc
Project maintenance: long-term
Current features:
Obtain activity network card information: Netcard IPv4 IPv6 mac
How to use
1.cargo add get_local_info
2.Import into your project
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!("your mac:{}", get_local_info::get_pc_mac());
}
About the Author
- Liu Qiang in Wuhan, China
- crates:?https://crates.io/crates/get_local_info
- github:?GitHub - daijianshusheng/rs_libGetDeviceInfo: Getlocalinfo is a Rust crate that obtains local information
- create time:2023.12.28
文章来源:https://blog.csdn.net/liulcsy/article/details/135287625
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。 如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:veading@qq.com进行投诉反馈,一经查实,立即删除!
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。 如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:veading@qq.com进行投诉反馈,一经查实,立即删除!