Skip to content

Add support for reexporting the derive proc macro? #49

@LHolten

Description

@LHolten

Hi, my library has a proc macro that generates code that uses #[derive(::my_library::RefCast)].
Here ::my_library::RefCast reexports ::ref_cast::RefCast, but sadly the RefCast macro generates hardcoded references to the ::ref_cast crate.
This means that users of my_library have to add a dependency on both my-library and ref-cast.

Could you make the RefCast derive macro accept a path to the location where it has been reexported from and then use that for the generated code?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions