Skip to content

Commit

Permalink
update template
Browse files Browse the repository at this point in the history
  • Loading branch information
majcn committed Jan 9, 2024
1 parent 9969007 commit e315321
Show file tree
Hide file tree
Showing 24 changed files with 1,554 additions and 416 deletions.
3 changes: 2 additions & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
[alias]
today = "run --quiet --release --features today -- today"
scaffold = "run --quiet --release -- scaffold"
download = "run --quiet --release -- download"
read = "run --quiet --release -- read"

solve = "run --quiet --release -- solve"
all = "run --quiet --release -- all"
time = "run --quiet --release -- all --release --time"
time = "run --quiet --release -- time"

[env]
AOC_YEAR = "2023"
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,10 @@ data/inputs/*
!data/inputs/.keep
data/puzzles/*
!data/puzzles/.keep

# Dhat
dhat-heap.json

# Benchmarks

data/timings.json
5 changes: 3 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"recommendations": [
"vadimcn.vscode-lldb",
"rust-lang.rust-analyzer",
"serayuzgur.crates"
"serayuzgur.crates",
"editorConfig.editorConfig"
]
}
}
36 changes: 22 additions & 14 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,45 @@
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in executable 'advent_of_code'",
"name": "Debug unit tests for a solution",
"cargo": {
"args": ["test", "--no-run", "--bin=advent_of_code", "--package=advent_of_code"],
"filter": {
"name": "advent_of_code",
"kind": "bin"
}
"args": [
"test",
"--no-run",
// replace `01` here with the solution you like to debug.
"--bin=01",
"--package=advent_of_code"
],
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug executable 'advent_of_code'",
"name": "Debug a solution",
"cargo": {
"args": ["build", "--bin=advent_of_code", "--package=advent_of_code"],
"filter": {
"name": "advent_of_code",
"kind": "bin"
}
"args": [
"build",
// replace `01` here with the solution you like to debug.
"--bin=01",
"--package=advent_of_code"
],
},
"args": ["1"],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in library 'advent_of_code'",
"cargo": {
"args": ["test", "--no-run", "--lib", "--package=advent_of_code"],
"args": [
"test",
"--no-run",
"--lib",
"--features=test_lib",
"--package=advent_of_code"
],
"filter": {
"name": "advent_of_code",
"kind": "lib"
Expand Down
Loading

0 comments on commit e315321

Please sign in to comment.