Switch to custom bindings for the windows::core
internals
#1993
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
windows::core
module provides various facilities in support of Windows APIs published by thewindows
crate and relies on various Windows API internally to make that happen. Up to this point, those APIs were generated by a variant of thebindgen
crate but this has a few drawbacks:bindgen
crateI had considered using
windows-sys
internally but that's not practical because:windows-sys
crate lacks support for COM interfaceswindows-sys
is versioned independently from thewindows
crateSo I ended up just taking a snapshot of the APIs I need internally. This avoids all kinds of inter-dependencies that were making it harder and harder to make improvements to the
windows::core
module and frees me to fix a number of outstanding issues far more easily. It also greatly reduces the amount of code in thewindows::core
module.