Skip to content

Commit 3c01059

Browse files
committed
Added experimental rust support
Signed-off-by: paulober <[email protected]>
1 parent b879c0e commit 3c01059

19 files changed

+2088
-92
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
@@ -89,6 +89,12 @@ For optimal functionality, consider enabling:
8989

9090
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.
9191

92+
## Rust Prerequisites
93+
94+
### Linux
95+
96+
- **GCC** for the host architecture
97+
9298
## VS Code Profiles
9399

94100
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",
@@ -157,7 +158,7 @@
157158
"command": "raspberry-pi-pico.runProject",
158159
"title": "Run Pico Project (USB)",
159160
"category": "Raspberry Pi Pico",
160-
"enablement": "raspberry-pi-pico.isPicoProject"
161+
"enablement": "raspberry-pi-pico.isPicoProject && !raspberry-pi-pico.isRustProject"
161162
},
162163
{
163164
"command": "raspberry-pi-pico.clearGithubApiCache",
@@ -168,7 +169,7 @@
168169
"command": "raspberry-pi-pico.conditionalDebugging",
169170
"title": "Conditional Debugging",
170171
"category": "Raspberry Pi Pico",
171-
"enablement": "raspberry-pi-pico.isPicoProject && !inQuickOpen"
172+
"enablement": "raspberry-pi-pico.isPicoProject && !inQuickOpen && !raspberry-pi-pico.isRustProject"
172173
},
173174
{
174175
"command": "raspberry-pi-pico.debugLayout",
@@ -185,7 +186,7 @@
185186
"command": "raspberry-pi-pico.configureCmake",
186187
"title": "Configure CMake",
187188
"category": "Raspberry Pi Pico",
188-
"enablement": "raspberry-pi-pico.isPicoProject"
189+
"enablement": "raspberry-pi-pico.isPicoProject && !raspberry-pi-pico.isRustProject"
189190
},
190191
{
191192
"command": "raspberry-pi-pico.switchBuildType",
@@ -212,7 +213,7 @@
212213
"command": "raspberry-pi-pico.flashProject",
213214
"title": "Flash Pico Project (SWD)",
214215
"category": "Raspberry Pi Pico",
215-
"enablement": "raspberry-pi-pico.isPicoProject"
216+
"enablement": "raspberry-pi-pico.isPicoProject && !raspberry-pi-pico.isRustProject"
216217
},
217218
{
218219
"command": "raspberry-pi-pico.cleanCmake",
@@ -325,6 +326,7 @@
325326
"got": "^14.4.5",
326327
"ini": "^5.0.0",
327328
"rimraf": "^6.0.1",
329+
"toml": "^3.0.0",
328330
"undici": "^6.21.0",
329331
"uuid": "^11.0.4",
330332
"which": "^5.0.0"

0 commit comments

Comments
 (0)