Skip to content

Ability to use linkme in proc macros without requiring explicit dependency #110

@nazar-pc

Description

@nazar-pc

I have a procedural macro that outputs code with linkme, the problem is that it requires users of the macro to know about this and add linkme to explicit dependencies.

I'm wondering if it would be possible to add support for custom linkme path (rather than ::linkme) so I can customize it to point to re-exports.

Something like this:

#[distributed_slice(BENCHMARKS, linkme = "::other_crate::__private::linkme")]

This would be a big UX improvement for users of my crate.

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