Error Adding xtensa-esp32-espidf Target on Stable Rust

Hi,
I'm currently using rustup version 1.27.1.
I noticed that the xtensa esp-idf targets have been upstreamed to stable Rust (since version 1.81). However, when I tried to install one of these targets using: rustup target add xtensa-esp32-espidf
I encountered the following error:

error: toolchain 'stable-x86_64-unknown-linux-gnu' does not support target 'xtensa-esp32-espidf'
note: you can see a list of supported targets with `rustc --print=target-list`
note: if you are adding support for a new target to rustc itself, see https://rustc-dev-guide.rust-lang.org/building/new-target.html

It seems I may have misunderstood something.

https://doc.rust-lang.org/rustc/platform-support.html#tier-3

it is added to the supported target list of the compiler, however, tier 3 targets are not available through rustup. I think the easist way is to use espup:

1 Like