|
| 1 | +{ |
| 2 | + "version": "2.0.0", |
| 3 | + "tasks": [ |
| 4 | + { |
| 5 | + "label": "cargo: build", |
| 6 | + "type": "shell", |
| 7 | + "command": "cargo build", |
| 8 | + "group": { |
| 9 | + "kind": "build", |
| 10 | + "isDefault": true |
| 11 | + }, |
| 12 | + "problemMatcher": ["$rustc"] |
| 13 | + }, |
| 14 | + { |
| 15 | + "label": "cargo: build (release)", |
| 16 | + "type": "shell", |
| 17 | + "command": "cargo build --release", |
| 18 | + "group": "build", |
| 19 | + "problemMatcher": ["$rustc"] |
| 20 | + }, |
| 21 | + { |
| 22 | + "label": "cargo: build embassy example", |
| 23 | + "type": "shell", |
| 24 | + "command": "cargo build --no-default-features --features embassy --example ${input:embassyExample}", |
| 25 | + "group": "build", |
| 26 | + "problemMatcher": ["$rustc"] |
| 27 | + }, |
| 28 | + { |
| 29 | + "label": "cargo: check", |
| 30 | + "type": "shell", |
| 31 | + "command": "cargo check", |
| 32 | + "group": "build", |
| 33 | + "problemMatcher": ["$rustc"] |
| 34 | + }, |
| 35 | + { |
| 36 | + "label": "cargo fmt: format code", |
| 37 | + "type": "shell", |
| 38 | + "command": "cargo fmt", |
| 39 | + "problemMatcher": [] |
| 40 | + }, |
| 41 | + { |
| 42 | + "label": "cargo fmt: check format", |
| 43 | + "type": "shell", |
| 44 | + "command": "cargo fmt -- --check", |
| 45 | + "problemMatcher": [] |
| 46 | + }, |
| 47 | + { |
| 48 | + "label": "cargo size: show binary size", |
| 49 | + "type": "shell", |
| 50 | + "command": "cargo size --release -- -A", |
| 51 | + "problemMatcher": [] |
| 52 | + }, |
| 53 | + { |
| 54 | + "label": "cargo objdump: disassemble", |
| 55 | + "type": "shell", |
| 56 | + "command": "cargo objdump --release -- --disassemble", |
| 57 | + "problemMatcher": [] |
| 58 | + }, |
| 59 | + { |
| 60 | + "label": "cargo objdump: section headers", |
| 61 | + "type": "shell", |
| 62 | + "command": "cargo objdump --release -- --section-headers", |
| 63 | + "problemMatcher": [] |
| 64 | + }, |
| 65 | + { |
| 66 | + "label": "cargo objdump: symbol table", |
| 67 | + "type": "shell", |
| 68 | + "command": "cargo objdump --release -- --syms", |
| 69 | + "problemMatcher": [] |
| 70 | + }, |
| 71 | + { |
| 72 | + "label": "cargo nm: list symbols by size", |
| 73 | + "type": "shell", |
| 74 | + "command": "cargo nm --release -- --size-sort --print-size", |
| 75 | + "problemMatcher": [] |
| 76 | + }, |
| 77 | + { |
| 78 | + "label": "cargo readobj: file headers", |
| 79 | + "type": "shell", |
| 80 | + "command": "cargo readobj --release -- --file-headers", |
| 81 | + "problemMatcher": [] |
| 82 | + }, |
| 83 | + { |
| 84 | + "label": "elf2uf2: convert to UF2", |
| 85 | + "type": "shell", |
| 86 | + "command": "elf2uf2-rs target/thumbv6m-none-eabi/release/{{project-name}} target/{{project-name}}.uf2", |
| 87 | + "dependsOn": "cargo: build (release)", |
| 88 | + "problemMatcher": [] |
| 89 | + }, |
| 90 | + { |
| 91 | + "label": "cargo: clean", |
| 92 | + "type": "shell", |
| 93 | + "command": "cargo clean", |
| 94 | + "problemMatcher": [] |
| 95 | + } |
| 96 | + ], |
| 97 | + "inputs": [ |
| 98 | + { |
| 99 | + "id": "embassyExample", |
| 100 | + "description": "Embassy example name", |
| 101 | + "type": "pickString", |
| 102 | + "options": [ |
| 103 | + "embassy_blinky", |
| 104 | + "embassy_button", |
| 105 | + "embassy_multitask" |
| 106 | + ], |
| 107 | + "default": "embassy_blinky" |
| 108 | + } |
| 109 | + ] |
| 110 | +} |
0 commit comments