mirror of
https://github.com/SrIzan10/adventofcode.git
synced 2026-06-06 00:46:56 +00:00
Advent of Code 2025 - Rust
Daily Workflow
To add a new day's solution (e.g., Day 2):
-
Create the Source File:
- Copy
src/days/day01.rstosrc/days/day02.rs. - Update the logic in
part1andpart2.
- Copy
-
Register the Module:
- Open
src/days/mod.rs. - Add
pub mod day02;at the top. - Add a match arm for the new day:
2 => day02::run(),
- Open
-
Add Input:
- Create a new file
inputs/day02.txt. - Paste your puzzle input into it.
- Create a new file
-
Run:
- Execute the solution with:
cargo run 2
- Execute the solution with: