{ // See https://go.microsoft.com/fwlink/?LinkId=733558 // for the documentation about the tasks.json format "version": "2.0.0", "tasks": [ { "label": "cargo run cli", "type": "shell", "command": "~/.cargo/bin/cargo", // note: full path to the cargo "args": [ "run", "--bin", "main_cli", // "--release", ], "group": { "kind": "build", // "isDefault": true } }, { "label": "cargo run cli release", "type": "shell", "command": "~/.cargo/bin/cargo", // note: full path to the cargo "args": [ "run", "--bin", "main_cli", "--release", ], "group": { "kind": "build", // "isDefault": true } }, { "label": "cargo run gui", "type": "shell", "command": "~/.cargo/bin/cargo", // note: full path to the cargo "args": [ "run", "--bin", "main_gui", // "--release", ], "group": { "kind": "build", // "isDefault": true } }, { "label": "cargo run gui release", "type": "shell", "command": "~/.cargo/bin/cargo", // note: full path to the cargo "args": [ "run", "--bin", "main_gui", "--release", ], "group": { "kind": "build", // "isDefault": true } }, { "label": "cargo bundle - create app release", "type": "shell", "command": "~/.cargo/bin/cargo", // note: full path to the cargo "args": [ "bundle", "--bin", "main_gui", "--release", // "--target", // "aarch64-apple-darwin", // "x86_64-pc-windows-gnu" // "--", // "arg1" ], "group": { "kind": "build", // "isDefault": true } }, { "label": "Terminate All Tasks", "command": "echo ${input:terminate}", "type": "shell", "problemMatcher": [] }, { "label": "delay", "command": "sleep 0.01", // Delay for 0.01 seconds to discover the process "type": "shell", "problemMatcher": [] }, // { // "label": "cargo rerun", // "dependsOn": ["Terminate All Tasks", "delay", "cargo run"], // "dependsOrder": "sequence", // "group": "build", // } ], "inputs": [ { "id": "terminate", "type": "command", "command": "workbench.action.tasks.terminate", "args": "terminateAll" } ] }