Uh oh!
There was an error while loading. Please reload this page.
Replace winreg with windows-registry - #3896
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
windows-registrywinreg with windows-registryUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
djc
left a comment
There was a problem hiding this comment.
Overall a really nice improvement!
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
djc
commented
Jun 22, 2024
Sorry, but it turns out I had to make some changes to registry-related API in #3893. Hopefully it won't be too hard to rebase on top of my changes. |
InfyniteHeap
commented
Jun 22, 2024
Oh, I think I'd better replace dependency from scratch lest appear some unexpect problems.😅 |
InfyniteHeap
commented
Jun 22, 2024
This PR will keep closed until |
@InfyniteHeap FYI microsoft/windows-rs#3119 has been closed, so you might restart your work on this one! |
InfyniteHeap
commented
Jun 29, 2024
Sounds great! I'll restart my work when new version of |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
This PR is getting even clearer than the previous iteration, modulo some eventual rebases (esp. after @kennykerr's possible API adjustments). Good job!
PS: As a favor, please consider listing @ChrisDenton as a co-author of some (or all) of your commits when applicable :)
djc
left a comment
There was a problem hiding this comment.
This looks good to me, thanks for all the work!
kennykerr
commented
Sep 22, 2024
I could implement Deref in place of as_wide and that would provide all of this directly. |
rami3l
commented
Sep 22, 2024
Current status: Waiting for a new upstream release to ship microsoft/windows-rs#3148... |
kennykerr
commented
Sep 23, 2024
Here's the |
djc
left a comment
There was a problem hiding this comment.
@kennykerr what's the rationale for using all-uppercase names for stuff like HSTRING and HRESULT? Are you trying to match the upstream names exactly? It looks rather unidiomatic.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
kennykerr
commented
Sep 24, 2024
There are countless identifiers in the Windows API. It's just not very practical to come up with different names - it has been attempted. It also makes it a lot harder to cross-reference documentation and source code for equivalent types. |
InfyniteHeap
commented
Sep 24, 2024
What about these changes? |
djc
left a comment
There was a problem hiding this comment.
I think this is looking great. @InfyniteHeap and @kennykerr thanks for all the work! Would be nice to get that windows-registry release out so that we can move forward with this.
kennykerr
commented
Sep 24, 2024
Coming up: microsoft/windows-rs#3293 |
kennykerr
commented
Sep 25, 2024
Version 0.3.0 of the windows-registry crate has been published. https://github.com/microsoft/windows-rs/releases/tag/0.60.0 |
djc
commented
Sep 25, 2024
Can you squash all of your changes into a single commit? |
InfyniteHeap
commented
Sep 25, 2024
I've done this. |
There was a problem hiding this comment.
LGTM, and thanks for your work @InfyniteHeap!
PS: You may proceed with cleanup PRs such as the one discussed in #3896 (comment) shortly after.
Closes#3779.
APIs provided by
winregcrate is not safe, simple and abstract enough. Besides that, it probably also contains protential bugs. Because of that, it is better to replace it withwindows-registrycrate, which is officially published and maintained by Microsoft.