Skip to content

Use relative file path in pdl proc macro attribute  #63

@hchataing

Description

@hchataing

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions