This repo contains my solutions for the Advent of Code 2023 written in Rust.
d1p1.rsis my main solution for day 1 part 1.d1p2a1.rsis another (alternative 1) solution for day 1 part 2.
To run a solution use cargo run --bin d1p1 for day 1 part 1.
Puzzle inputs are fetched automatically thanks to the aocd crate. This is to avoid publishing inputs as requested by the author of AoC.
Follow the instructions of aocd to set up your session token, necessary for
fetching your inputs.
To run tests use cargo test. For each day part, at least the public example
is tested but this don't cover edge cases. For debugging purposes or without
a particular reason there may be more tests.