Skip to content

Commit

Permalink
Add --features flag to README examples
Browse files Browse the repository at this point in the history
When running locally, the `cargo run`/`cargo playdate run` examples in
the README failed to compile due to missing required features. Hence,
add the relevant flag to all examples to ensure that they build and run
correctly, assuming the rest of the pre-requisites have been met.
  • Loading branch information
andreascasapu committed Sep 4, 2024
1 parent b59c92f commit 1b639bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ Follow the instructions for:

Run example:
```bash
cargo run -p=cargo-playdate -- run -p=playdate-controls --example=buttons
cargo run -p=cargo-playdate -- run -p=playdate-controls --example=buttons --features="sys/lang-items sys/entry-point"
```

Install `cargo-playdate` and build & run another example:
```bash
cargo install cargo-playdate
cargo playdate run -p=playdate-sound --example=sp
cargo playdate run -p=playdate-sound --example=sp --device
cargo playdate run -p=playdate-sound --example=sp --features="sys/lang-items sys/entry-point"
cargo playdate run -p=playdate-sound --example=sp --features="sys/lang-items sys/entry-point" --device
```

### Demo
Expand Down

0 comments on commit 1b639bb

Please sign in to comment.