Solutions for Advent of Code implemented in Rust, and organized by year.
crates/aoc2025/
├── Cargo.toml
└── src/
├── lib.rs # Shared utilities
└── bin/
├── d01.rs # Day 1 solution
├── d02.rs # Day 2 solution
└── ...- Rust
- just -
cargo install just - Optional: cargo-watch -
cargo install cargo-watch
-
Add your session token to
.env:TOKEN=your_session_token_here
-
Create a new day:
just new-day 1
-
Download input and solve:
just solve 1
Run just or just --list to see all available commands.
just build- Build all daysjust test- Run all testsjust release- Build optimized binaries
just run-release 1 puzzle- Run day 1 with puzzle inputjust run-current puzzle- Run most recent day
just download 1- Download day 1 inputjust solve 1- Download, run, and submit day 1just check-status 1- Check completion status
just watch 1- Auto-rebuild on changesjust lint- Run clippy and format checkjust fmt- Format all code
The aoc2025 crate provides common utilities in lib.rs:
use aoc2025::*;
fn solve(input: &str) {
let lines = lines(input); // Parse as lines
let nums = parse_numbers(input); // Parse as numbers
// ... grid utilities available in grid module
}