| 📦 Turbo Rust 713ea5c k33g 13h ago | 1 | # turbo-rust tools. |
| 2 | # |
| 3 | # Each [[tool]] becomes one line of the Rust menu, in the order they appear |
| 4 | # here. name is what the menu shows; a letter between tildes is its hot key, and |
| 5 | # no two tools should claim the same one. |
| 6 | # |
| 7 | # command goes to "sh -c", so pipes, globs and && work: one entry can be a |
| 8 | # whole sequence. |
| 9 | # |
| 10 | # menu says which menu it appears in. Leave it out and the tool goes into the |
| 11 | # Rust menu; name anything else and that menu is created for you, in the order |
| 12 | # the names first appear here. A tool that has nothing to do with Rust belongs |
| 13 | # in one of your own: |
| 14 | # |
| 15 | # [[tool]] |
| 16 | # name = "~E~cho" |
| 17 | # command = "echo TADA" |
| 18 | # menu = "Tools" |
| 19 | # |
| 20 | # output says where what the command prints goes: |
| 21 | # popup a dialog that fills in as it runs, and says the exit code (default) |
| 22 | # terminal a terminal window, for anything that reads the keyboard or runs long |
| 23 | # editor an editing window once it has finished, to search with Ctrl-F |
| 24 | # |
| 25 | # Commands run in the directory the editor was started in, which is why they |
| 26 | # see the whole workspace when you start from its root. |
| 27 | |
| 28 | [[tool]] |
| 29 | name = "~F~ormat" |
| 30 | command = "cargo fmt" |
| 31 | output = "popup" |
| 32 | |
| 33 | [[tool]] |
| 34 | name = "~L~int" |
| 35 | command = "cargo clippy --all-targets" |
| 36 | output = "popup" |
| 37 | |
| 38 | [[tool]] |
| 39 | name = "~B~uild" |
| 40 | command = "cargo build" |
| 41 | output = "popup" |
| 42 | |
| 43 | [[tool]] |
| 44 | name = "~T~est" |
| 45 | command = "cargo test" |
| 46 | output = "popup" |
| 47 | |
| 48 | [[tool]] |
| 49 | name = "~R~un" |
| 50 | command = "cargo run" |
| 51 | # A terminal, not a popup: a program that reads the keyboard has to be able to |
| 52 | # be answered, and one that runs long has to be able to be interrupted. |
| 53 | output = "terminal" |