{
"version": "2.0.0",
"options": {
"env": {
},
},
"presentation": {
"panel": "dedicated",
"clear": true,
},
"tasks": [
{
"type": "shell",
"label": "cargo build",
"command": "cargo",
"args": [
"build"
],
"problemMatcher": [
"$rustc"
],
},
{
"type": "shell",
"label": "cargo test",
"command": "cargo",
"args": [
"test"
],
"problemMatcher": [
"$rustc"
],
"group": {
"kind": "build",
"isDefault": true
},
},
{
"type": "shell",
"label": "cargo watch test",
"command": "wt",
"args": [
"new-tab",
"cargo-watch",
"-c",
"-x",
"test"
],
"problemMatcher": [],
},
{
"type": "shell",
"label": "cargo watch run",
"command": "wt",
"args": [
"new-tab",
"cargo-watch",
"-c",
"-x",
"run",
],
"problemMatcher": [],
},
{
"type": "shell",
"label": "cargo run exmaple",
"command": "cargo",
"args": [
"run",
"--example",
"${fileBasenameNoExtension}"
],
"problemMatcher": [
"$rustc"
],
},
{
"type": "shell",
"label": "cargo doc open",
"command": "cargo",
"args": [
"doc",
"--open",
"--no-deps",
"--all-features"
],
"problemMatcher": [
"$rustc"
],
},
{
"type": "shell",
"label": "cargo clippy",
"command": "cargo",
"args": [
"clippy",
"--all-features",
"--tests",
"--bin",
"rustdoc-include",
"--",
"-W",
"clippy::all"
],
"problemMatcher": [
"$rustc"
],
},
{
"type": "shell",
"label": "cargo fix & fmt",
"command": "cargo fix && cargo clippy --fix --allow-dirty && cargo fmt",
"problemMatcher": [
"$rustc"
],
},
{
"type": "shell",
"label": "cargo bench",
"command": "cargo",
"args": [
"bench"
],
"options": {
"cwd": "${workspaceFolder}/benchmarks"
},
"problemMatcher": [
"$rustc"
],
},
{
"type": "shell",
"label": "cargo update minimal-versions",
"command": "cargo",
"args": [
"+nightly",
"update",
"-Z",
"minimal-versions"
],
"problemMatcher": [
"$rustc"
],
},
{
"type": "shell",
"label": "update compile error",
"command": "cargo",
"args": [
"test",
"--test",
"compile_fail",
"--",
"--ignored"
],
"problemMatcher": [
"$rustc"
],
"options": {
"env": {
"TRYBUILD": "overwrite",
}
}
},
],
}