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 query_file*!() variants with inherent support for include_str!() and other macros #3388

Open
abonander opened this issue Jul 27, 2024 · 0 comments
Labels
enhancement New feature or request macros

Comments

@abonander
Copy link
Collaborator

Now that macro invocations in attributes are eagerly expanded, we can utilize this to replace query_file!("<path>") and variants with query!(include_str!("<path>")), which also gives us the ability to resolve paths relative to the current file (and eliminate about half the query*!() variants, a win for maintainability).

This would also allow use of concat!() and other string-manipulation macros in the input.

@abonander abonander added enhancement New feature or request macros labels Jul 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request macros
Projects
None yet
Development

No branches or pull requests

1 participant