This image builds the rust compiler toolchain for the Xtensa ISA using llvm-project and rust-xtensa.
Most of the steps in this image are based on a blog post by Yoshinari Nomura.
To build your project, run this in the same directory as your Cargo.toml
.
Your project needs to be mounted in /code
to build out of the box.
docker run -v $PWD:/code mtnmts/rust-esp32
If you want an interactive session to use anything inside the machine (esptool.py is installed and in the path for example, if you want to use elf2image).
docker run -v $PWD:/code -ti mtnmts/rust-esp32 bash