Install espup tool:
cargo install espup
espup install
Init path
source ~/export-esp.sh
Init project:
cargo generate --git https://github.com/esp-rs/esp-template
cargo generate --git https://github.com/esp-rs/esp-idf-template cargo
π€· Project Name: test
π§ Destination: /tmp/test/test ...
π§ project-name: test ...
π§ Generating template ...
β π€· Configure project to use Dev Containers (VS Code, GitHub Codespaces and Gitpod)? (beware: Dev Containers not available for esp-idf v4.3.2) Β· false
β π€· STD support Β· false
β π€· ESP-IDF native build version (v4.3.2 = previous stable, v4.4 = stable, mainline = UNSTABLE) Β· v4.4
β π€· MCU Β· esp32
[ 1/10] Done: .cargo/config.toml
[ 2/10] Done: .cargo
[ 3/10] Done: .gitignore
[ 4/10] Done: .vscode
[ 5/10] Done: Cargo.toml [ 6/10] Done: build.rs [ 7/10] Done: rust-toolchain.toml [ 8/10] Done: sdkconfig.defaults [ 9/10] Done: src/main.rs [10/10] Done: src π§ Moving generated files into: `/tmp/test/test`...
π‘ Initializing a fresh Git repository
β¨ Done! New project created /tmp/test/test
Build and run
cd test/
cargo build
cargo run