CodeChain-io / CodeChain-io/intertrait
Publicly export `linkme` from `intertrait` and use it for the macros
Open
- Dominant language
- Rust
- Stars
- 42
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
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
```rust
#[::linkme::distributed_slice(::intertrait::CASTERS)]
```
### New:
src/lib.rs
```rust
pub use linkme;
```
macros/src/gen_caster.rs
```rust
#[::intertrait::linkme::distributed_slice(::intertrait::CASTERS)]
#[linkme(crate = ::intertrait::linkme)]
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.