My solutions to Advent of Code 2023, implemented in Rust. This is the first project I've ever written in Rust that wasn't a tutorial, so whilst I'm trying to keep it idiomatic it might very well not be perfect! This project is structured as a Cargo workspace, with each day's solution as a separate package.
To run part one of a particular day's puzzle from the workspace root:
cargo run -p day01 -- puzzle_input_file.txt
(You'll need to provide your own puzzle input.)
To run part two add the --part-two
flag:
cargo run -p day01 -- --part-two puzzle_input_file.txt
To run tests for every solution:
cargo test