mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-12-28 06:49:19 +00:00
With this, a new user can fork Rustlings and start a Github Codespace. The Container will already be correctly set up with everything needed, and VSCode tasks are set up for starting rustlings.
96 lines
2.4 KiB
JSON
96 lines
2.4 KiB
JSON
{
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
|
|
{
|
|
"label": "Start Rustlings",
|
|
"type": "shell",
|
|
"command": "cargo",
|
|
"args": [
|
|
"run"
|
|
],
|
|
"group": {
|
|
"kind": "build",
|
|
"isDefault": true
|
|
},
|
|
"presentation": {
|
|
"reveal": "always",
|
|
"panel": "new",
|
|
"clear": true
|
|
},
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Rustlings: Run Exercise",
|
|
"type": "shell",
|
|
"command": "cargo",
|
|
"args": [
|
|
"run",
|
|
"--",
|
|
"run",
|
|
"${input:exerciseName}"
|
|
],
|
|
"group": "build",
|
|
"presentation": {
|
|
"reveal": "always",
|
|
"panel": "shared"
|
|
},
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Rustlings: Get Hint",
|
|
"type": "shell",
|
|
"command": "cargo",
|
|
"args": [
|
|
"run",
|
|
"--",
|
|
"hint",
|
|
"${input:exerciseName}"
|
|
],
|
|
"group": "build",
|
|
"presentation": {
|
|
"reveal": "always",
|
|
"panel": "shared"
|
|
},
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Rustlings: Reset Exercise",
|
|
"type": "shell",
|
|
"command": "cargo",
|
|
"args": [
|
|
"run",
|
|
"--",
|
|
"reset",
|
|
"${input:exerciseName}"
|
|
],
|
|
"group": "build",
|
|
"presentation": {
|
|
"reveal": "always",
|
|
"panel": "shared"
|
|
},
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
"problemMatcher": []
|
|
}
|
|
],
|
|
"inputs": [
|
|
{
|
|
"id": "exerciseName",
|
|
"description": "Exercise name (e.g., variables1, functions2)",
|
|
"default": "",
|
|
"type": "promptString"
|
|
}
|
|
]
|
|
}
|