# Install build dependencies for the ESP IoT Development Framework (ESP-IDF).
sudo apt update
sudo apt install git-all python3 -y
cargo install ldproxy
# Enable installing pre-built binaries without building them from scratch with `cargo install`.
cargo install cargo-binstall
# Set up Espressif's custom toolchain (forked from LLVM and `rustc`) for Xtensa architecture support.
cargo binstall espup
espup install
# Load toolchain-related environment variables.
source $HOME/export-esp.sh
cargo install espflash --version 2.0.0-rc.3
cargo binstall cargo-espflash
# Builds the project in release mode, flashes the ESP32 chip, and hooks into the serial monitor.
cargo run --release