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

Use relative file path in pdl proc macro attribute #63

Open
hchataing opened this issue Aug 31, 2023 · 0 comments
Open

Use relative file path in pdl proc macro attribute #63

hchataing opened this issue Aug 31, 2023 · 0 comments

Comments

@hchataing
Copy link
Collaborator

The API Span::source_file is currently nightly (https://doc.rust-lang.org/stable/proc_macro/struct.Span.html#method.source_file), and there is no alternate way to get the path to the file a proc macro attribute runs on.
This means the pdl proc_macro attribute cannot use a relative file path similarly to include_str!.
This should be updated when the API becomes stable.

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

No branches or pull requests

1 participant