A (mostly) Rust 🦀 set of solutions to the Advent of Code puzzles for 2022.
Run a day using cargo run --bin <day>
to run an unoptimized build with example input. Run a day using cargo run --release --bin <day> -- --real
.
The runner expects that the example input has been provided. It will try to automatically the download the real input. Add the AOC_SESSION
environment variable using:
export AOC_SESSION=<your session cookie> #Unix
.
├── alternate
│ └── dayX # Alternate/non-refactored/different language solutions to day X
├── inputs
│ ├── example # example puzzle inputs
│ │ └── dayX.txt
│ └── real # real puzzle inputs
│ └── dayX.txt
└── src
├── bin
│ └── dayX.rs # solution for day X
├── lib.rs # helper library
└── main.rs # main project binary, does nothing right now
- A wonderful series of articles explaing Rust 🦀 using Advent of Code by @fasterthanlime
- For some genuinely impressive solutions: @AxlLind
- Some more and pretty good solutions: @jontmy
- Another good set of solutions: @Ummon