#structures #structure #ifstructs #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

#840 in Unix APIs

Download history 420/week @ 2024-12-03 448/week @ 2024-12-10 324/week @ 2024-12-17 126/week @ 2024-12-24 389/week @ 2024-12-31 320/week @ 2025-01-07 344/week @ 2025-01-14 379/week @ 2025-01-21 331/week @ 2025-01-28 402/week @ 2025-02-04 389/week @ 2025-02-11 656/week @ 2025-02-18 478/week @ 2025-02-25 439/week @ 2025-03-04 432/week @ 2025-03-11 279/week @ 2025-03-18

1,690 downloads per month
Used in 11 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