看看pnet包: extern crate pnet; use pnet::datalink; fn main() { for iface in datalink::interfaces() { println!("{:?}", iface.ips); } }
note: LINK : fatal error LNK1181: cannot open input file 'Packet.lib'
。---> 在下面找到了答案:https://docs.rs/crate/pnet - jaques-samnote: LINK : fatal error LNK1181: cannot open input file 'Packet.lib'
。---> 在下面找到了答案:https://docs.rs/crate/pnet - undefined