ivmarkov / rust-esp32-std-demo

Rust on ESP32 STD demo app. A demo STD binary crate for the ESP32[XX] and ESP-IDF, which connects to WiFi, Ethernet, drives a small HTTP server and draws on a LED screen.
Apache License 2.0
785 stars 105 forks source link

rust-analyzer not consider "arch = xtensa" #31

Closed hongquan closed 2 years ago

hongquan commented 2 years ago

I'm opening this repo in VS Code. Already installed ESP-IDF, already selected xtensa-esp32-espidf, already have rust-toolchain.toml file with:

[toolchain]
channel = "esp"

But I got this block of code inactive:

image

Is it Ok, or what should I do to let rust-analyzer highlight it.

ivmarkov commented 2 years ago

It is not OK and it is a (minor) bug. I've pushed a fix. Please re-pull and the problem should be fixed. Just have in mind that rust backtraces are in a very shaky state. They are not stabilized in rust itself, and on the esp-idf they only work with the esp-idf v4.3 (no later).