Solutions for Advent of Code in Rust.
Day | Part 1 | Part 2 |
---|---|---|
Day 1 | ⭐ | ⭐ |
Day 2 | ⭐ | ⭐ |
Day 3 | ⭐ | ⭐ |
Day 4 | ⭐ | ⭐ |
Day 5 | ⭐ | ⭐ |
Day 6 | ⭐ | ⭐ |
Day 7 | ⭐ | ⭐ |
Day 8 | ⭐ | ⭐ |
Day 9 | ⭐ | ⭐ |
Day 10 | ⭐ | ⭐ |
Day 11 | ⭐ | ⭐ |
Day 12 | ⭐ | ⭐ |
Day 13 | ⭐ | ⭐ |
Day 14 | ⭐ | ⭐ |
Day 15 | ⭐ | ⭐ |
Day 16 | ⭐ | ⭐ |
Day 17 | ⭐ | ⭐ |
Day 18 | ⭐ | ⭐ |
Day 19 | ⭐ | ⭐ |
Day 20 | ⭐ | ⭐ |
Day 21 | ⭐ | ⭐ |
Day 22 | ⭐ | ⭐ |
Day 23 | ⭐ | ⭐ |
Day 24 | ⭐ | ⭐ |
Day 25 | ⭐ | ⭐ |
See benchmarks here. Benchmarks are run ad-hoc without closing everything else. All benchmarks are run in WSL (Ubuntu 22.04.3 LTS) on my Windows PC (13th Gen Intel Core i9-13900K 32-Core Processor with 32GB Memory).
I use the following command line tools (all can be installed via cargo):
To install them all, run:
rustup component add rustfmt clippy
cargo install cargo-watch cargo-nextest cargo-generate just aoc-cli
Instead of remembering all the commands that need to be run, I've set up a justfile
. For a list of the predefined commands, run just help
. All commands used from linting to benchmarking are available through the just runner.