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