52 lines
1.5 KiB
JSON
Executable File
52 lines
1.5 KiB
JSON
Executable File
{
|
|
"name": "espressif-training",
|
|
// Comment the image and use the build property to build the image from the
|
|
// Dockerfile instead of downloading it from https://hub.docker.com/r/espressif/rust-std-training
|
|
// "image": "docker.io/espressif/rust-std-training",
|
|
"build": {
|
|
"dockerfile": "Dockerfile",
|
|
"args": {
|
|
"NIGHTLY_VERSION": "nightly-2025-01-01"
|
|
}
|
|
},
|
|
// Privileged container in order to access /dev
|
|
"privileged": true,
|
|
// Mount USB devices (debug probes, UART interfaces, ...)
|
|
"mounts": [
|
|
"source=/dev/bus/usb/,target=/dev/bus/usb/,type=bind"
|
|
],
|
|
"runArgs": [
|
|
"--device=/dev/ttyACM0"
|
|
],
|
|
"customizations": {
|
|
"vscode": {
|
|
"settings": {
|
|
"editor.formatOnPaste": true,
|
|
"editor.formatOnSave": true,
|
|
"editor.formatOnSaveMode": "modifications",
|
|
"editor.formatOnType": true,
|
|
"lldb.executable": "/usr/bin/lldb",
|
|
"files.watcherExclude": {
|
|
"**/target/**": true
|
|
},
|
|
"rust-analyzer.checkOnSave.command": "clippy",
|
|
"[rust]": {
|
|
"editor.defaultFormatter": "rust-lang.rust-analyzer"
|
|
}
|
|
},
|
|
"extensions": [
|
|
"rust-lang.rust-analyzer",
|
|
"tamasfe.even-better-toml",
|
|
"vadimcn.vscode-lldb",
|
|
"serayuzgur.crates",
|
|
"mutantdino.resourcemonitor",
|
|
"yzhang.markdown-all-in-one",
|
|
"Wokwi.wokwi-vscode"
|
|
]
|
|
}
|
|
},
|
|
"remoteUser": "esp",
|
|
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind,consistency=cached",
|
|
"workspaceFolder": "/workspace"
|
|
}
|