From b59c92f3a67e34db6ad5961ebf9c832e15f24525 Mon Sep 17 00:00:00 2001 From: Andreas Casapu Date: Wed, 4 Sep 2024 21:04:09 +0200 Subject: [PATCH 1/2] Correct cargo playdate run sound example in README The `cargo playdate run` examples in the README referred to `sp-simple`. However, while the actual file is called `sp-simple.rs`, the example is called just `sp`. Hence, correct the README with the right name. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 32436549..d8863008 100644 --- a/README.md +++ b/README.md @@ -47,8 +47,8 @@ cargo run -p=cargo-playdate -- run -p=playdate-controls --example=buttons Install `cargo-playdate` and build & run another example: ```bash cargo install cargo-playdate -cargo playdate run -p=playdate-sound --example=sp-simple -cargo playdate run -p=playdate-sound --example=sp-simple --device +cargo playdate run -p=playdate-sound --example=sp +cargo playdate run -p=playdate-sound --example=sp --device ``` ### Demo From 1b639bb3b739de806bd94bf764d53497fa451184 Mon Sep 17 00:00:00 2001 From: Andreas Casapu Date: Wed, 4 Sep 2024 21:09:25 +0200 Subject: [PATCH 2/2] Add --features flag to README examples 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. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d8863008..a5d6a836 100644 --- a/README.md +++ b/README.md @@ -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