intertrait icon indicating copy to clipboard operation
intertrait copied to clipboard

Publicly export `linkme` from `intertrait` and use it for the macros

Open LunaticWyrm467 opened this issue 6 months ago • 0 comments

Simply publicly export the linkme crate - or the needed components from it - at the root of the intertrait crate, so that macros can access their dependencies without needing people to install the linkme crate separately.

Changes

macros/src/gen_caster.rs

Old

macros/src/gen_caster.rs

#[::linkme::distributed_slice(::intertrait::CASTERS)]

New:

src/lib.rs

pub use linkme;

macros/src/gen_caster.rs

#[::intertrait::linkme::distributed_slice(::intertrait::CASTERS)]
#[linkme(crate = ::intertrait::linkme)]

LunaticWyrm467 avatar Jul 19 '25 11:07 LunaticWyrm467