andrew-d / interfaces-rs

Library to work with network interfaces in Rust.

Home Page:https://andrew-d.github.io/interfaces-rs/interfaces/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

interfaces-rs

Actions Status Crate Docs

This project consists of functions to work with network interfaces in a cross-platform manner.

This is based on getifaddrs() to get information of network interfaces. Therefore some platforms (e.g. Windows) which don't have it are not supported.

Example

Add this to your Cargo.toml:

[dependencies]
interfaces = "0.0.9"

Then, in your crate:

extern crate interfaces;

use interfaces::Interface;

License

MIT or Apache 2.0

About

Library to work with network interfaces in Rust.

https://andrew-d.github.io/interfaces-rs/interfaces/index.html


Languages

Language:Rust 61.9%Language:C 38.1%