Rust Toolchain build - esp-rs/rust-build Wiki

Commands:

python3 src/bootstrap/configure.py  --experimental-targets=Xtensa --enable-extended --tools=clippy,rustfmt --dist-compression-formats='xz'
python3 x.py dist --stage 2

Testing:

./test-rust-toolchain.sh --toolchain-version 1.58.0.0

Aarch64-unknown-gnu-linux

apt-get install pkg-config libssl-dev libudev-dev python3-virtualenv python3-dev python python-dev python3-pip