Skip to content

Commit 83b26a1

Browse files
Document frunk_core dependency requirement for [Labelled]Generic (#219)
1 parent 34ba13d commit 83b26a1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,15 @@ assert_eq!(remainder, hlist![true]);
162162
`Generic` is a way of representing a type in ... a generic way. By coding around `Generic`, you can to write functions
163163
that abstract over types and arity, but still have the ability to recover your original type afterwards. This can be a fairly powerful thing.
164164

165+
#### Setup
166+
167+
In order to derive the trait `Generic` (or `LabelledGeneric`) you will have to add `frunk_core` dependency
168+
169+
```toml
170+
[dependencies]
171+
frunk_core = { version = "$version" }
172+
```
173+
165174
Frunk comes out of the box with a nice custom `Generic` derivation so that boilerplate is kept to a minimum.
166175

167176
Here are some examples:

0 commit comments

Comments
 (0)