espressif/rust-esp32-example

Avoid fixing the rust build target in .cargo/config

Closed this issue · 0 comments

igrr commented

Currently .cargo/config file

target = "xtensa-esp32-none-elf"
sets the target to xtensa-esp32-none-elf. When building the project for the ESP32-C3 this needs to be changed manually to riscv32i-unknown-none-elf.

We could try to generate .cargo/config during CMake configuration step (i.e. invoked from idf.py set-target esp32c3), when the chip target is known.