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

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

Open
nazar-pc opened this issue Jan 22, 2025 · 0 comments
Open

Comments

@nazar-pc
Copy link

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.

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