2019-05-01 13:00:29 -07:00
|
|
|
{
|
2022-12-23 08:27:36 -06:00
|
|
|
"name": "Rust",
|
2024-04-05 13:25:01 +05:30
|
|
|
"image": "mcr.microsoft.com/devcontainers/rust:1-1-bullseye",
|
2022-05-17 12:42:11 -07:00
|
|
|
"customizations": {
|
|
|
|
|
"vscode": {
|
2022-12-23 08:27:36 -06:00
|
|
|
"settings": {},
|
2022-05-17 12:42:11 -07:00
|
|
|
"extensions": [
|
2025-10-21 14:05:16 +08:00
|
|
|
"streetsidesoftware.code-spell-checker",
|
2025-10-26 16:27:56 +08:00
|
|
|
"rust-lang.rust-analyzer",
|
|
|
|
|
"vadimcn.vscode-lldb"
|
2025-10-21 14:05:16 +08:00
|
|
|
],
|
|
|
|
|
|
2025-10-26 16:27:56 +08:00
|
|
|
|
2025-10-21 14:05:16 +08:00
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
2025-10-26 14:56:11 +00:00
|
|
|
|
2025-10-21 14:05:16 +08:00
|
|
|
"forwardPorts": [8080],
|
|
|
|
|
"portsAttributes": {
|
|
|
|
|
"8080": {
|
|
|
|
|
"label": "Rust Application",
|
|
|
|
|
"onAutoForward": "notify"
|
2022-05-17 12:42:11 -07:00
|
|
|
}
|
2025-10-26 14:56:11 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"postAttachCommand": "cargo build && clear"
|
2025-10-21 14:05:16 +08:00
|
|
|
}
|