-
Notifications
You must be signed in to change notification settings - Fork 15
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
use windows crate directly #97
Conversation
Sweet! ✌️ |
(The failing tests are unrelated noise - they were already failing on a scheduled rebuild of the main branch. I guess it has something to do with the recently released rust 1.67, cross compilation, and freebsd not playing nicely together.) |
Windows-rs 0.46 was released, and should be usable for us now. 🎉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good and I love dropping all of this unsafe. Thanks all!
Thanks everyone, especially @kennykerr. |
Looks like @Jake-Shadle this is also a prime candidate for |
Done in v0.1.55 |
That's fast, thanks! |
I recently tried this now that Unfortunately/obviously this doesn't suffice the MSRV 1.48 policy of this crate thanks to Diff is here: https://github.com/MarijnS95/iana-time-zone/compare/windows-core I generated the bindings without Still appears to be a half-second (approx!) win though, running: cargo clean && cargo b --timing CC @kennykerr, you might be interested in this. Note also that the compiler suggested that |
This drops a lot of
unsafe
code on Windows. For now, this pulls in thewindows
crate using git. When this is released it we can update this PR.See microsoft/windows-rs#2317 and microsoft/windows-rs#2318
Thanks to @Kijewski @kennykerr and @riverar