When I was solving puzzles, my goal was to practice writing idiomatic Rust. My solutions do not claim to be the fastest or fully production ready. Consider this as the 2020 version of BurntSushi's 2018 Advent of Code solutions. I tried to maintain it's style by adding my own features.
- 🧘 Panicless idiomatic Rust code
- ☂️ DRY: shared codebase between the two parts
- 1️⃣ Single
main.rs
per day - 🎿 Acceptable speed
- 🤷 anyhow error handling
- 🌞 Doesn't need Nightly
The solution runs the same way as BurntSushi's: cd
into it's directory and invoke the program with Cargo:
$ cd aoc01
$ cargo run --release < input/input.txt
The minimum supported Rust version is 1.51 due to Const Generics.
- The fastest AoC 2020 Rust solutions: https://github.com/timvisee/advent-of-code-2020
- Production grade AoC 2020 Rust solutions: https://github.com/coriolinus/adventofcode-2020
Check them out too!