#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

#662 in Unix APIs

Download history 133/week @ 2023-12-06 128/week @ 2023-12-13 154/week @ 2023-12-20 102/week @ 2023-12-27 133/week @ 2024-01-03 140/week @ 2024-01-10 116/week @ 2024-01-17 96/week @ 2024-01-24 97/week @ 2024-01-31 136/week @ 2024-02-07 152/week @ 2024-02-14 155/week @ 2024-02-21 182/week @ 2024-02-28 164/week @ 2024-03-06 286/week @ 2024-03-13 245/week @ 2024-03-20

914 downloads per month
Used in 8 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

~50KB