Skip to content

Commit 1de1d55

Browse files
committed
Clearly document a direct dependency on linkme is required
1 parent 29749a3 commit 1de1d55

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,19 @@ With this crate, any trait object for a sub-trait of [`CastFrom`] can be cast di
1414
for another trait implemented by the underlying type if the target traits are registered beforehand
1515
with the macros provided by this crate.
1616

17+
# Dependencies
18+
Add the following two dependencies to your `Cargo.toml`:
19+
20+
```toml
21+
[dependencies]
22+
intertrait = "0.2"
23+
linkme = "0.2"
24+
```
25+
26+
The `linkme` dependency is required due to the use of `linkme` macro in the output of `intertrait` macros.
27+
1728
# Usage
29+
1830
```rust
1931
use intertrait::*;
2032
use intertrait::cast::*;

0 commit comments

Comments
 (0)