Now compatible with current Rust 2018 edition.
- Windows
- Unix-Like (BSD-Like, XNU, Linux)
git clone https://github.com/zkonge/rust-ifaces.git
cargo run --example ifaces
[dependencies]
ifaces = { git = "https://github.com/zkonge/rust-ifaces.git" }
fn main() {
match ifaces::ifaces() {
Ok(interfaces) => {
for interface in interfaces.iter() {
println!("Found Interface: {:?}", interface)
}
}
Err(_) => println!("Ooops ...")
}
}
- dlevy47 https://github.com/dlevy47/rust-interfaces, Origin code(linux platform)
- GGist https://github.com/GGist/rust-ifaces, windows platform code