22 lines
627 B
JSON
22 lines
627 B
JSON
{
|
|
"lsp": {
|
|
"rust-analyzer": {
|
|
"initialization_options": {
|
|
"cargo": {
|
|
"allTargets": false,
|
|
// This must match the target MCU's target
|
|
"target": "xtensa-esp32s3-none-elf",
|
|
// Prevents rust-analyzer from blocking cargo
|
|
"targetDir": "target/rust-analyzer",
|
|
"extraEnv": {
|
|
// ESP32-S3 is an Xtensa MCU, we need to work with the esp toolchain
|
|
"RUSTUP_TOOLCHAIN": "esp",
|
|
},
|
|
"extraArgs": ["-Zbuild-std=core,alloc"],
|
|
"features": ["esp32s3", "esp-hal-unstable", "log"],
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|