Advent of Code 2021: Мade with Rust
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 2021 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️⃣ Singlemain.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
MSRV
This code was written using Rust 1.56.1.