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

Replace manual code generation with procedural macro #567

Merged
merged 2 commits into from
Jan 8, 2025

Conversation

simonwuelker
Copy link
Contributor

This makes LSPs like rust-analyzer pick up the rules.rs file, making it much more pleasant to edit.

It also completely removes the build.rs, which has many benefits (less mental overhead, faster compile times, easier integration with non-cargo build systems, ...)

@simonwuelker simonwuelker changed the title Replace manual code generation Replace manual code generation with procedural macro Jan 8, 2025
This makes LSPs like rust-analyzer pick up the rules.rs
file, making it much easier to edit.

Signed-off-by: Simon Wülker <[email protected]>
Signed-off-by: Simon Wülker <[email protected]>
Copy link
Member

@mrobinson mrobinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great change! I would love to remove the macro entirely as I think it probably obscures the code more than improves it, but that's a much larger change and this is a good first step.

@mrobinson mrobinson added this pull request to the merge queue Jan 8, 2025
Merged via the queue into servo:main with commit feced06 Jan 8, 2025
6 checks passed
@simonwuelker simonwuelker deleted the hands-off-codegen branch January 9, 2025 13:51
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.

2 participants