Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows compatibility: replace ifaces crate with get_if_addrs #11

Merged
merged 2 commits into from
Dec 16, 2018

Conversation

GeorgeHahn
Copy link
Contributor

This PR adds Windows compatibility. The ifaces crate is replaced with the get_if_addrs crate, which supplies the required functionality and is cross platform.

UDP socket creation is moved to an os-specific function. There should likely be a macOS specialization as well, but I do not own a mac to test on. Reference: deprecrated/net2-rs#46

@dylanmckay
Copy link
Owner

Nice patch, I always wanted to replace the ifaces dependency due to its staleness but I couldn't find a good replacement. get_if_addrs looks nice.

@dylanmckay
Copy link
Owner

Doesn't change the public API either, neat.

@dylanmckay dylanmckay merged commit b0cc497 into dylanmckay:master Dec 16, 2018
@dylanmckay
Copy link
Owner

I'll push a new minor version to crates.io when I've come back from grocery shopping

@GeorgeHahn
Copy link
Contributor Author

Ping 😉

@dylanmckay
Copy link
Owner

dylanmckay commented Dec 29, 2018

Whoops!

Published 0.3.1 in 13f20a5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants