Code Monkey home page Code Monkey logo

Comments (6)

bachue avatar bachue commented on July 20, 2024 1

@dilawar socket2 v0.4.5 has been yanked.

from dns-lookup.

dilawar avatar dilawar commented on July 20, 2024

Came here to report exactly the same issue. Looks like socket2 is not playing well with https://microsoft.github.io/windows-docs-rs/doc/windows/Win32/Networking/WinSock/struct.SOCKADDR.html# (or vice-versa).

@bachue Please let me know if you find a way around it e.g. pinning versions.

from dns-lookup.

keeperofdakeys avatar keeperofdakeys commented on July 20, 2024

Thanks for the bug report.

I might keep this issue open for now until socket2 have decided what they want to do, this crate may need changes if they release a new version. I'll also consider if I should switch to windows_sys myself (though it still appears to be quite new, and a fast moving target).

from dns-lookup.

dilawar avatar dilawar commented on July 20, 2024

I'll also consider if I should switch to windows_sys myself (though it still appears to be quite new, and a fast moving target).

I am porting this to windows_sys on our fork. I am new to Rust though but I'll link my work here anyway. It may be helpful 🤞🏼. One super annoying change in windows-sys crate is u8 and i8 are mixed and I am scared of std::mem::transmute.

winapi is not actively maintained so probably it is not a bad idea porting to windows_sys.

from dns-lookup.

keeperofdakeys avatar keeperofdakeys commented on July 20, 2024

I've merged a version with the migration to windows-sys, along with a few fixups to work with the latest socket2. The windows github actions are passing, but I'd appreciate if someone could test this with a real windows application. Once I get confirmation I'll push version 2.0.0.

from dns-lookup.

keeperofdakeys avatar keeperofdakeys commented on July 20, 2024

I've done some testing on Windows and it all looks good, so I've pushed version 2.0.0 with the windows-sys changes.

from dns-lookup.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.