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

#41 in Network programming

Download history 66044/week @ 2024-01-26 60232/week @ 2024-02-02 65321/week @ 2024-02-09 74095/week @ 2024-02-16 70088/week @ 2024-02-23 72549/week @ 2024-03-01 69939/week @ 2024-03-08 70395/week @ 2024-03-15 73807/week @ 2024-03-22 71965/week @ 2024-03-29 80482/week @ 2024-04-05 78027/week @ 2024-04-12 75271/week @ 2024-04-19 66077/week @ 2024-04-26 61817/week @ 2024-05-03 56297/week @ 2024-05-10

273,372 downloads per month
Used in 409 crates (42 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–9MB
~68K SLoC