Solutions for Advent of Code 2025 written in Rust 🦀
- Rust (2024 edition or later)
git clone https://github.com/barclayd/advent-of-code-2025.git
cd advent-of-code-2025
cargo build
cargo testPrerequisites:
- 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
./scripts/puzzle-input.shThis 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.
advent-of-code-2025/
├── day-01/
├── day-02/
├── day-03/
...
└── README.md
This project uses GitHub Actions for continuous integration. The workflow:
- Runs on every push to
mainand pull request againstmain - Tests solution for every day
The workflow configuration can be found in .github/workflows/ci.yml.
These run in a parallelized matrix.
| 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 | ⭐⭐ |