Skip to content

Avoid windows crate dependency in implement and interface macros - #2917

Merged
Kenny Kerr (kennykerr) merged 4 commits into
masterfrom
windows-core-macros
Mar 7, 2024
Merged

Kenny Kerr (kennykerr) merged 4 commits into
masterfrom
windows-core-macros

Conversation

@kennykerr

@kennykerr Kenny Kerr (kennykerr) commented Mar 7, 2024 •

Copy link
Copy Markdown
Collaborator

The implement and interface macros used for COM support don't need to depend on the windows crate itself, but as a consequence of how proc macros inject code it can get a little awkward since any dependencies that may be injected are the responsibility of the calling crate to provide. Still, I think this is cleaner and allows these macros to be used in more scenarios. The only real issue you may encounter when upgrading is the need to add an explicit dependency on the windows-core crate, if you don't already have one.

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.

1 participant