No description
- Rust 89.9%
- Nix 10.1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| aoc-2026-1 | ||
| aoc-2026-2 | ||
| aoc-utils | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| flake.lock | ||
| flake.nix | ||
| README.md | ||
Advent of Code 2026
Solutions are organized as Cargo workspace members so that fetch-aoc can add future days directly to this repository.
Add a day
Install the generator once:
cargo install --git https://github.com/ptillemans/fetch-aoc
From the repository root, provide an Advent of Code session cookie and generate a day:
export AOC_SESSION='your-session-cookie'
fetch-aoc --year 2026 --day 10
This creates aoc-2026-10/, downloads data/input.txt and the challenge, and adds the new crate to the workspace. The generator does not overwrite existing files, so it is safe to run again for a partially created day.
The generated template includes nightly-only benchmark scaffolding. Remove the #![feature(test)], extern crate test, and #[bench] sections (or use a nightly toolchain) before running it on stable Rust.
Run solutions
cargo test --workspace
cargo run -p aoc-2026-9