#native-bindings #unix #structures #ifreq

ifstructs

A Rust library with native bindings to unix if* structures

2 releases

Uses old Rust 2015

0.1.1 Aug 8, 2018
0.1.0 Aug 8, 2018

#107 in #native-bindings

Download history 531/week @ 2024-07-30 339/week @ 2024-08-06 237/week @ 2024-08-13 224/week @ 2024-08-20 252/week @ 2024-08-27 260/week @ 2024-09-03 364/week @ 2024-09-10 292/week @ 2024-09-17 315/week @ 2024-09-24 459/week @ 2024-10-01 306/week @ 2024-10-08 426/week @ 2024-10-15 371/week @ 2024-10-22 333/week @ 2024-10-29 371/week @ 2024-11-05 374/week @ 2024-11-12

1,482 downloads per month
Used in 9 crates (via veilid-tools)

MIT license

40KB
1K SLoC

Rust 791 SLoC // 0.0% comments Shell 240 SLoC // 0.3% comments

ifstructs

A Rust library with native bindings to unix if* structures

Build Status Latest version Documentation License

Usage

First, add the following to your 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();
  
  ...
}

Dependencies

~52KB