使用旧版Rust 2015
0.1.1
| 2018年8月8日 |
0.1.0
| 2018年8月8日 |
671 在 Unix API
1,502 每月下载量
在 9 个crate中(通过 veilid-tools)使用
40KB
1K SLoC
ifstructs
一个具有Unix if*
结构原生绑定的Rust库

使用方法
首先,将以下内容添加到您的 Cargo.toml
[dependencies]
ifstructs = "0.1.1"
然后,将此内容添加到您的crate中
extern crate ifstructs;
use ifstructs::ifreq;
fn main() {
let mut req = ifreq::from_name("eth0").unwrap();
...
}