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 66634/week @ 2024-01-23 61562/week @ 2024-01-30 64237/week @ 2024-02-06 69514/week @ 2024-02-13 72039/week @ 2024-02-20 69583/week @ 2024-02-27 71028/week @ 2024-03-05 69527/week @ 2024-03-12 76265/week @ 2024-03-19 63406/week @ 2024-03-26 82604/week @ 2024-04-02 81255/week @ 2024-04-09 74039/week @ 2024-04-16 74516/week @ 2024-04-23 64325/week @ 2024-04-30 47543/week @ 2024-05-07

276,122 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
~65K SLoC