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