54 lines
998 B
JSON
54 lines
998 B
JSON
{
|
|
"name": "Rust",
|
|
"image": "mcr.microsoft.com/devcontainers/rust:1-1-bullseye",
|
|
"customizations": {
|
|
"vscode": {
|
|
"settings": {},
|
|
"extensions": [
|
|
"streetsidesoftware.code-spell-checker",
|
|
"rust-lang.rust-analyzer",
|
|
"vadimcn.vscode-lldb"
|
|
],
|
|
|
|
|
|
"debug": {
|
|
"configurations": [
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "Debug Rust Application",
|
|
"program": "${workspaceFolder}/target/debug/${workspaceFolderBasename}",
|
|
"args": [],
|
|
"cwd": "${workspaceFolder}",
|
|
"preLaunchTask": "cargo-build"
|
|
}
|
|
]
|
|
},
|
|
|
|
"tasks": {
|
|
"tasks": [
|
|
{
|
|
"type": "cargo",
|
|
"command": "build",
|
|
"problemMatcher": [
|
|
"$rustc"
|
|
],
|
|
"group": "build",
|
|
"label": "cargo-build"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
|
|
|
|
"forwardPorts": [8080],
|
|
"portsAttributes": {
|
|
"8080": {
|
|
"label": "Rust Application",
|
|
"onAutoForward": "notify"
|
|
}
|
|
},
|
|
|
|
"postAttachCommand": "cargo build && clear"
|
|
} |