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
Obtain activity network card information: Netcard IPv4 IPv6 mac
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());
}