Use vscode multi-root ws for esp-hal

This commit is contained in:
Scott Mabin 2022-08-02 17:30:50 +01:00 committed by Jesse Braham
parent 22ac479bff
commit 4c943378f8
5 changed files with 31 additions and 92 deletions

View File

@ -1,23 +0,0 @@
{
"rust-analyzer.cargo.features": [
"esp32"
],
"rust-analyzer.cargo.allFeatures": false,
"editor.formatOnSave": false,
"rust-analyzer.checkOnSave.allTargets": true,
"rust-analyzer.checkOnSave.allFeatures": false,
"rust-analyzer.checkOnSave.overrideCommand": [
"cargo",
"check",
"--features",
"esp32",
"--message-format=json",
"-Z",
"build-std=core",
"--target",
"xtensa-esp32-none-elf",
"--examples",
"--lib",
],
"rust-analyzer.cargo.buildScripts.enable": false
}

View File

@ -1,23 +0,0 @@
{
"rust-analyzer.cargo.features": [
"esp32c3"
],
"rust-analyzer.cargo.allFeatures": false,
"editor.formatOnSave": true,
"rust-analyzer.checkOnSave.allTargets": true,
"rust-analyzer.checkOnSave.allFeatures": false,
"rust-analyzer.checkOnSave.overrideCommand": [
"cargo",
"check",
"--features",
"esp32c3",
"--message-format=json",
"-Z",
"build-std=core",
"--target",
"riscv32imc-unknown-none-elf",
"--examples",
"--lib",
],
"rust-analyzer.cargo.buildScripts.enable": false
}

View File

@ -1,23 +0,0 @@
{
"rust-analyzer.cargo.features": [
"esp32s2"
],
"rust-analyzer.cargo.allFeatures": false,
"editor.formatOnSave": false,
"rust-analyzer.checkOnSave.allTargets": true,
"rust-analyzer.checkOnSave.allFeatures": false,
"rust-analyzer.checkOnSave.overrideCommand": [
"cargo",
"check",
"--features",
"esp32s2",
"--message-format=json",
"-Z",
"build-std=core",
"--target",
"xtensa-esp32s2-none-elf",
"--examples",
"--lib",
],
"rust-analyzer.cargo.buildScripts.enable": false
}

View File

@ -1,23 +0,0 @@
{
"rust-analyzer.cargo.features": [
"esp32s3"
],
"rust-analyzer.cargo.allFeatures": false,
"editor.formatOnSave": false,
"rust-analyzer.checkOnSave.allTargets": true,
"rust-analyzer.checkOnSave.allFeatures": false,
"rust-analyzer.checkOnSave.overrideCommand": [
"cargo",
"check",
"--features",
"esp32s3",
"--message-format=json",
"-Z",
"build-std=core",
"--target",
"xtensa-esp32s3-none-elf",
"--examples",
"--lib",
],
"rust-analyzer.cargo.buildScripts.enable": false
}

31
esp-hal.code-workspace Normal file
View File

@ -0,0 +1,31 @@
{
"folders": [
{
"path": "esp-hal-common"
},
{
"path": "esp32-hal"
},
{
"path": "esp32c3-hal"
},
{
"path": "esp32s2-hal"
},
{
"path": "esp32s3-hal"
},
{
"path": "esp-hal-procmacros"
}
],
"settings": {
"editor.formatOnSave": true,
"rust-analyzer.checkOnSave.allTargets": false,
"rust-analyzer.imports.granularity.enforce": true,
"rust-analyzer.imports.granularity.group": "crate",
"rust-analyzer.cargo.buildScripts.enable": true,
"rust-analyzer.procMacro.attributes.enable": true,
"rust-analyzer.procMacro.enable": true,
}
}