You can configure vscode like so
- create a .vscode directory at the root of your project
- create a tasks.json file
- populate it like so:
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "cargo run release",
"type": "shell",
"command": "cargo",
"args": [
"run",
"--release",
// "--",
// "arg1"
],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "cargo build release",
"type": "shell",
"command": "cargo",
"args": [
"build",
"--release",
// "--",
// "arg1"
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}