Skip to content

Commit

Permalink
Document frunk_core dependency requirement for [Labelled]Generic (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
dima-starosud authored Jul 4, 2023
1 parent 34ba13d commit 83b26a1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,15 @@ assert_eq!(remainder, hlist![true]);
`Generic` is a way of representing a type in ... a generic way. By coding around `Generic`, you can to write functions
that abstract over types and arity, but still have the ability to recover your original type afterwards. This can be a fairly powerful thing.

#### Setup

In order to derive the trait `Generic` (or `LabelledGeneric`) you will have to add `frunk_core` dependency

```toml
[dependencies]
frunk_core = { version = "$version" }
```

Frunk comes out of the box with a nice custom `Generic` derivation so that boilerplate is kept to a minimum.

Here are some examples:
Expand Down

0 comments on commit 83b26a1

Please sign in to comment.