Skip to content
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

Metadata parsing and indexing improvements #2581

Merged
merged 6 commits into from
Jul 20, 2023
Merged

Metadata parsing and indexing improvements #2581

merged 6 commits into from
Jul 20, 2023

Conversation

kennykerr
Copy link
Collaborator

This update contains a collection of improvements to metadata handling, parsing, and indexing. Chiefly, the metadata reader now treats types, functions, and constants all as first-class citizens. Previously, only types were indexed which made sense for traditional WinRT metadata but Win32 metadata introduced free functions and constants that were harder to search for. No more!

This allows riddle to streamline how it handles filtering for APIs across namespace- or standalone-style code generation.

There's a bunch of code movement in the windows and windows-sys crates as a result of this indexing where constants are now sorted properly according to kind, but otherwise appear in the same modules and are unchanged.

@kennykerr kennykerr merged commit 3cb54c7 into master Jul 20, 2023
@kennykerr kennykerr deleted the riddle-clean branch July 20, 2023 21:52
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