My solutions to Advent of Code in Rust
Project structure is heavily inspired by advent-of-code-rust.
- Install Rust with rustup if you haven't already
- Clone repo
- Place input files in
input/yearYYYY/dayDD.txtincluding leading zeroes (e.g.input/year2025/day01.txtandinput/year2025/day12.txt) - Run
- Run everything:
cargo run - Run specific year:
cargo run year2025orcargo run 2025 - Run specific day:
cargo run year2025::day01orcargo run year2025 day01orcargo run 2025 01orcargo run 2025::01and so on
- Run everything:
- Run test on examples
- Test everything:
cargo test - Test specific year:
cargo test year2025 - Test specific day:
cargo test year2025::day01
- Test everything: