I have no idea what I'm doing in Rust, and I definitely don't understand borrowing yet, so this is a hideous solution on multiple fronts. I'm not sure that I'll be sticking with Rust as AoC doesn't feel like a conducive environment to learn it in.
45 lines
1.3 KiB
JSON
45 lines
1.3 KiB
JSON
{
|
|
// Use IntelliSense to learn about possible attributes.
|
|
// Hover to view descriptions of existing attributes.
|
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "Debug executable 'aoc2021'",
|
|
"cargo": {
|
|
"args": [
|
|
"build",
|
|
"--bin=aoc2021",
|
|
"--package=aoc2021"
|
|
],
|
|
"filter": {
|
|
"name": "aoc2021",
|
|
"kind": "bin"
|
|
}
|
|
},
|
|
"args": [],
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
{
|
|
"type": "lldb",
|
|
"request": "launch",
|
|
"name": "Debug unit tests in executable 'aoc2021'",
|
|
"cargo": {
|
|
"args": [
|
|
"test",
|
|
"--no-run",
|
|
"--bin=aoc2021",
|
|
"--package=aoc2021"
|
|
],
|
|
"filter": {
|
|
"name": "aoc2021",
|
|
"kind": "bin"
|
|
}
|
|
},
|
|
"args": [],
|
|
"cwd": "${workspaceFolder}"
|
|
}
|
|
]
|
|
} |