16 unstable releases (6 breaking)

0.12.0 Apr 2, 2024
0.11.1 Mar 12, 2024
0.11.0 Dec 5, 2023
0.10.2 Oct 4, 2023
0.6.5 Oct 28, 2020

#43 in Network programming

Download history 24032/week @ 2023-12-23 37543/week @ 2023-12-30 56907/week @ 2024-01-06 61436/week @ 2024-01-13 66628/week @ 2024-01-20 64348/week @ 2024-01-27 59768/week @ 2024-02-03 66630/week @ 2024-02-10 75173/week @ 2024-02-17 69540/week @ 2024-02-24 72706/week @ 2024-03-02 69195/week @ 2024-03-09 72356/week @ 2024-03-16 68000/week @ 2024-03-23 78846/week @ 2024-03-30 67078/week @ 2024-04-06

296,832 downloads per month
Used in 398 crates (41 directly)

MIT OR BSD-3-Clause

34KB
736 lines

if-addrs

https://crates.io/crates/if-addrs

Overview

Retrieve network interface info for all interfaces on the system.

// List all of the machine's network interfaces
for iface in if_addrs::get_if_addrs().unwrap() {
    println!("{:#?}", iface);
}

Todo Items

  • Create an API for responding to changes in network interfaces.

License

This SAFE Network library is dual-licensed under the Modified BSD (LICENSE-BSD https://opensource.org/licenses/BSD-3-Clause) or the MIT license (LICENSE-MIT http://opensource.org/licenses/MIT) at your option.

Contribution

Copyrights in the SAFE Network are retained by their contributors. No copyright assignment is required to contribute to this project.

Dependencies

~0–10MB
~76K SLoC