{ "version": "2.0.0", "tasks": [ { "label": "Build (native)", "type": "shell", "command": "cargo build --release", "group": "build", "presentation": { "reveal": "always", "panel": "shared" }, "problemMatcher": ["$rustc"] }, { "label": "Build Linux", "type": "shell", "command": "cargo build --release --target x86_64-unknown-linux-gnu", "group": "build", "options": { "shell": { "executable": "bash", "args": ["-c"] } }, "presentation": { "reveal": "always", "panel": "shared" }, "problemMatcher": ["$rustc"] }, { "label": "Build Windows (cross från Linux, GNU)", "type": "shell", "command": "cargo build --release --target x86_64-pc-windows-gnu", "group": "build", "options": { "shell": { "executable": "bash", "args": ["-c"] } }, "presentation": { "reveal": "always", "panel": "shared" }, "problemMatcher": ["$rustc"] }, { "label": "Build Windows (MSVC — kräver VS Build Tools)", "type": "shell", "command": "& \"$env:USERPROFILE\\.cargo\\bin\\cargo.exe\" build --release --target x86_64-pc-windows-msvc", "group": "build", "options": { "shell": { "executable": "powershell.exe", "args": ["-NoProfile", "-Command"] } }, "presentation": { "reveal": "always", "panel": "shared" }, "problemMatcher": ["$rustc"] }, { "label": "Build Windows (GNU — kräver msys2 + mingw-w64)", "type": "shell", "command": "& \"$env:USERPROFILE\\.cargo\\bin\\cargo.exe\" build --release --target x86_64-pc-windows-gnu", "group": "build", "options": { "shell": { "executable": "powershell.exe", "args": ["-NoProfile", "-Command"] } }, "presentation": { "reveal": "always", "panel": "shared" }, "problemMatcher": ["$rustc"] }, { "label": "Run", "type": "shell", "command": "cargo run", "group": { "kind": "build", "isDefault": true }, "presentation": { "reveal": "always", "panel": "shared" }, "problemMatcher": ["$rustc"] } ] }