Skip to content

barclayd/advent-of-code-2025

Repository files navigation

Advent of Code 2025

ci: passing   Rust

Solutions for Advent of Code 2025 written in Rust 🦀

Prerequisites

  • Rust (2024 edition or later)

Getting Started

git clone https://github.com/barclayd/advent-of-code-2025.git
cd advent-of-code-2025
cargo build
cargo test

Scripts

Start a new day

Prerequisites:

  • Get your AoC Session Cookie

This can be done by copying the value by going to https://adventofcode.com/ and opening Dev Tools. Chrome: Application => Cookies => https://adventofcode.com/ => session: <value> Copy the value and paste it into a newly created .env, based on .env.local

brew install pup
./scripts/new-day.sh
  • This will generate a new folder with a template ready to be worked on, including test setup and a blank a test.txt.

test.txt requires manual copying and pasting from the puzzle html at present

Get input

./scripts/puzzle-input.sh

This command auto generates your input.txt file and places it in the latest day folder.

For example, if you are working on a solution for Day 4, it will place it in /day-04/input.txt, ready to be used in your solution.

It is to be run when you have understood the puzzle and your tests locally for test.txt are passing.

Project Structure

advent-of-code-2025/
├── day-01/
├── day-02/
├── day-03/
...
└── README.md

Continuous Integration

This project uses GitHub Actions for continuous integration. The workflow:

  • Runs on every push to mainand pull request against main
  • Tests solution for every day

The workflow configuration can be found in .github/workflows/ci.yml. These run in a parallelized matrix.

Progress (24/24 ⭐️)

Day Challenge Stars
1 Secret Entrance ⭐️⭐️
2 Gift Shop ⭐️⭐️
3 Lobby ⭐️⭐️
4 Printing Department ⭐⭐
5 Cafeteria ⭐⭐
6 Trash Compactor ⭐⭐
7 Laboratories ⭐⭐
8 Playground ⭐⭐
9 Movie Theatre ⭐⭐
10 Factory ⭐⭐
11 Reactor ⭐⭐
12 Christmas Tree Farm ⭐⭐

About

Advent of Code, 2025, as always, written in Rust 🦀

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors