CodeChain-io / CodeChain-io/intertrait

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

オープン
#11 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Rust
スター
42
フォーク
8
PR マージ指標
30日以内にマージされた PR はありません

説明

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)]
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。