A template for kick-starting a Rust + FlipperZero project using flipperzero-rs
🐬❤️🦀.
- Install
rustup
by following the instructions onrustup.rs
. - Install the nightly build tool-chain to support the
different-binary-name
feature:rustup toolchain install nightly
- Install
cargo-generate
:cargo install cargo-generate
- Use
rustup
to install thethumbv7em-none-eabihf
target to the nightly build:rustup target add --toolchain nightly thumbv7em-none-eabihf
- Use
cargo generate
to clone this template:cargo generate --git https://github.com/flipperzero-rs/flipperzero-template.git --name my-project
- Switch into the local directory:
cd my-project
cargo build
The resulting .fap
binary can be found in target/thumbv7em-none-eabihf/debug
.
storage send target/thumbv7em-none-eabihf/release/my-project.fap /ext/apps/Examples/my-project.fap
You can automatically build and run your binary using cargo-watch
and the run-fap
tool.
cargo watch -s 'cargo build --release && run-fap target/thumbv7em-none-eabihf/release/my-project.fap'
This template is licensed under the MIT License.