安装Rust
安装 rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
换源
https://rsproxy.cn/#getStarted
安装esp32环境
安装espup
详细文档
https://github.com/esp-rs/espup#installation
执行步骤:
sudo apt-get update
sudo apt-get install -y gcc build-essential curl pkg-config
cargo install espup
espup install # To install Espressif Rust ecosystem
# [Unix]: Source the following file in every terminal before building a project
. $HOME/export-esp.sh
https://narukara.github.io/rust-on-esp-book-zh-cn/writing-your-own-application/generate-project/index.html
sudo apt install llvm-dev libclang-dev clang libuv-dev libuv1-dev pkgconf python3-venv python-is-python3
# https://narukara.github.io/std-training-zh-cn/02_2_software.html
cargo install cargo-espflash espflash ldproxy
cargo install cargo-generate