#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

#99 in #native-bindings

Download history 281/week @ 2024-06-02 289/week @ 2024-06-09 317/week @ 2024-06-16 237/week @ 2024-06-23 186/week @ 2024-06-30 260/week @ 2024-07-07 348/week @ 2024-07-14 402/week @ 2024-07-21 485/week @ 2024-07-28 347/week @ 2024-08-04 271/week @ 2024-08-11 219/week @ 2024-08-18 243/week @ 2024-08-25 284/week @ 2024-09-01 312/week @ 2024-09-08 291/week @ 2024-09-15

1,155 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

~51KB