Skip to content

tuvior/aoc-2025

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

15 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Advent of Code 2025 β€” Rust

Rust Stars License

A collection of my solutions to Advent of Code 2025, written in Rust.
This project serves as a practical way for me to learn Rust deeply by solving progressively harder problems using increasingly idiomatic patterns.

Each day follows a shared interface (Day trait) and a consistent file structure.


πŸš€ Running

Run a day:

cargo run -- <day>

Run a specific part:

cargo run -- <day> <part>

Run all tests:

cargo test

πŸ“ Project Structure

aoc-2025/
β”œβ”€β”€ inputs/
β”‚   β”œβ”€β”€ day01.txt
β”‚   β”œβ”€β”€ day02.txt
β”‚   └── ...
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ main.rs
β”‚   β”œβ”€β”€ lib.rs        # Day trait + generic runner
β”‚   └── days/
β”‚       β”œβ”€β”€ mod.rs
β”‚       β”œβ”€β”€ day01.rs
β”‚       β”œβ”€β”€ day02.rs
β”‚       └── ...
  • lib.rs: defines the Day trait and shared utilities
  • main.rs: command-line entrypoint
  • days/dayXX.rs: each day's solution

🎯 Goals

  • Learn idiomatic Rust
  • Practice:
    • ownership & borrowing
    • lifetimes (when needed)
    • iterators & combinators
    • pattern matching
    • clean module structures
    • error handling
    • testing & benchmarks
  • Solve the puzzles in a clean, readable way
  • Refactor code as Rust knowledge improves

⭐ Progress (18/24)

Day Part 1 Part 2 Notes
01 ⭐ ⭐
02 ⭐ ⭐
03 ⭐ ⭐
04 ⭐ ⭐
05 ⭐ ⭐
06 ⭐ ⭐
07 ⭐ ⭐
08 ⭐ ⭐
09 ⭐ ⭐
10 ❌ ❌
11 ❌ ❌
12 ❌ ❌

πŸ“ Disclaimer

This repository is part of my Rust learning journey.
Expect refactoring, experiments, and increasingly idiomatic solutions as I progress.

Contributors

Languages