messense / if-addrs

Retrieve IP addresses for all interfaces. POSIX & Windows
BSD 3-Clause "New" or "Revised" License
22 stars 15 forks source link

Improve support for niche platforms #33

Closed madsmtm closed 4 months ago

madsmtm commented 4 months ago

This adds support for visionOS and target_env = "newlib" (embedded) platforms by always providing an implementation, such that only one of these cfg lists have to be maintained. This is similar to what the nix crate does.

A little bit of context on why these names are not just unified in libc can be found in https://github.com/rust-lang/libc/issues/682.