#native-bindings #unix #structures

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

#874 in Unix APIs

Download history 549/week @ 2025-08-06 382/week @ 2025-08-13 484/week @ 2025-08-20 368/week @ 2025-08-27 585/week @ 2025-09-03 466/week @ 2025-09-10 390/week @ 2025-09-17 327/week @ 2025-09-24 380/week @ 2025-10-01 431/week @ 2025-10-08 403/week @ 2025-10-15 382/week @ 2025-10-22 309/week @ 2025-10-29 408/week @ 2025-11-05 388/week @ 2025-11-12 408/week @ 2025-11-19

1,562 downloads per month
Used in 14 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