A Rust library with native bindings to unix if* structures
if*
First, add the following to your Cargo.toml:
Cargo.toml
[dependencies] ifstructs = "0.1.1"
Next, add this to your crate:
extern crate ifstructs; use ifstructs::ifreq; fn main() { let mut req = ifreq::from_name("eth0").unwrap(); ... }