Skip to content

Commit

Permalink
feat: add strum install step
Browse files Browse the repository at this point in the history
  • Loading branch information
katopz committed Apr 24, 2024
1 parent 8dd45b7 commit ad78be7
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/rust/r5/enjoy4.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,32 @@ fn main() {

## strum

Install

```bash
cargo add strum
cargo add strum_macros
```

and get

```toml
strum = "0.26"
strum_macros = "0.26"
```

or

```bash
cargo add strum --features=derive
```

and get

```toml
strum = { version = "0.26", features = ["derive", "strum_macros"] }
```

```rust,editable
use std::str::FromStr;
use strum_macros::{Display, EnumString};
Expand Down

0 comments on commit ad78be7

Please sign in to comment.