Skip to content

Commit fc24e8a

Browse files
committed
Added experimental rust support
Signed-off-by: paulober <[email protected]>
1 parent 4f6dfe1 commit fc24e8a

19 files changed

+2083
-87
lines changed

.vscodeignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ tmp.py
3131
!scripts/lwipopts.h
3232
!scripts/pico_configs.tsv
3333
!scripts/pico_project.py
34+
!scripts/portable-msvc.py
3435
!scripts/pico-vscode.cmake
3536
!scripts/Pico.code-profile
3637
!scripts/raspberrypi-swd.cfg

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ For optimal functionality, consider enabling:
8686

8787
When prompted, select the `Pico` kit in CMake Tools, and set your build and launch targets accordingly. Use CMake Tools for compilation, but continue using this extension for debugging, as CMake Tools debugging is not compatible with Pico.
8888

89+
## Rust Prerequisites
90+
91+
### Linux
92+
93+
- **GCC** for the host architecture
94+
8995
## VS Code Profiles
9096

9197
If you work with multiple microcontroller toolchains, consider installing this extension into a [VS Code Profile](https://code.visualstudio.com/docs/editor/profiles) to avoid conflicts with other toolchains. Follow these steps:

package.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
},
6666
"activationEvents": [
6767
"workspaceContains:./pico_sdk_import.cmake",
68+
"workspaceContains:./.pico-rs",
6869
"onWebviewPanel:newPicoProject",
6970
"onWebviewPanel:newPicoMicroPythonProject"
7071
],
@@ -79,13 +80,13 @@
7980
"command": "raspberry-pi-pico.switchSDK",
8081
"title": "Switch Pico SDK",
8182
"category": "Raspberry Pi Pico",
82-
"enablement": "raspberry-pi-pico.isPicoProject"
83+
"enablement": "raspberry-pi-pico.isPicoProject && !raspberry-pi-pico.isRustProject"
8384
},
8485
{
8586
"command": "raspberry-pi-pico.switchBoard",
8687
"title": "Switch Board",
8788
"category": "Raspberry Pi Pico",
88-
"enablement": "raspberry-pi-pico.isPicoProject"
89+
"enablement": "raspberry-pi-pico.isPicoProject && !raspberry-pi-pico.isRustProject"
8990
},
9091
{
9192
"command": "raspberry-pi-pico.launchTargetPath",
@@ -151,7 +152,7 @@
151152
"command": "raspberry-pi-pico.runProject",
152153
"title": "Run Pico Project (USB)",
153154
"category": "Raspberry Pi Pico",
154-
"enablement": "raspberry-pi-pico.isPicoProject"
155+
"enablement": "raspberry-pi-pico.isPicoProject && !raspberry-pi-pico.isRustProject"
155156
},
156157
{
157158
"command": "raspberry-pi-pico.clearGithubApiCache",
@@ -162,7 +163,7 @@
162163
"command": "raspberry-pi-pico.conditionalDebugging",
163164
"title": "Conditional Debugging",
164165
"category": "Raspberry Pi Pico",
165-
"enablement": "raspberry-pi-pico.isPicoProject && !inQuickOpen"
166+
"enablement": "raspberry-pi-pico.isPicoProject && !inQuickOpen && !raspberry-pi-pico.isRustProject"
166167
},
167168
{
168169
"command": "raspberry-pi-pico.debugLayout",
@@ -179,7 +180,7 @@
179180
"command": "raspberry-pi-pico.configureCmake",
180181
"title": "Configure CMake",
181182
"category": "Raspberry Pi Pico",
182-
"enablement": "raspberry-pi-pico.isPicoProject"
183+
"enablement": "raspberry-pi-pico.isPicoProject && !raspberry-pi-pico.isRustProject"
183184
},
184185
{
185186
"command": "raspberry-pi-pico.importProject",
@@ -200,7 +201,7 @@
200201
"command": "raspberry-pi-pico.flashProject",
201202
"title": "Flash Pico Project (SWD)",
202203
"category": "Raspberry Pi Pico",
203-
"enablement": "raspberry-pi-pico.isPicoProject"
204+
"enablement": "raspberry-pi-pico.isPicoProject && !raspberry-pi-pico.isRustProject"
204205
}
205206
],
206207
"configuration": {
@@ -307,6 +308,7 @@
307308
"got": "^14.4.2",
308309
"ini": "^4.1.3",
309310
"rimraf": "^5.0.7",
311+
"toml": "^3.0.0",
310312
"undici": "^6.19.7",
311313
"uuid": "^10.0.0",
312314
"which": "^4.0.0"

0 commit comments

Comments
 (0)