添加构建调试

This commit is contained in:
2025-10-21 14:05:16 +08:00
parent 51a04207ab
commit 040d521395
5 changed files with 78 additions and 25 deletions

7
.vscode/launch.json vendored
View File

@@ -1,4 +1,3 @@
{
"version": "0.2.0",
"configurations": [
@@ -17,7 +16,11 @@
"kind": "bin"
}
},
"args": []
"args": [],
// 添加环境变量解决文件锁问题
"env": {
"CARGO_REGISTRIES_CRATES_IO_PROTOCOL": "sparse"
},
}
]
}

25
.vscode/task.json vendored Normal file
View File

@@ -0,0 +1,25 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "cargo-clean-build",
"type": "process",
"command": "cargo",
"args": [
"build",
"--bin=hello_remote_world",
"--package=hello_remote_world"
],
"group": "build",
"problemMatcher": ["$rustc"],
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared",
"showReuseMessage": true,
"clear": false
}
}
]
}