12 unstable releases (4 breaking)
0.10.1 | Feb 28, 2023 |
---|---|
0.9.0 | Feb 24, 2023 |
0.7.0 | Dec 14, 2021 |
0.6.7 | Nov 7, 2021 |
0.6.5 | Oct 28, 2020 |
#239 in Rust patterns
220,158 downloads per month
Used in 373 crates
(37 directly)
33KB
714 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–14MB
~122K SLoC