No description
  • Rust 89.9%
  • Nix 10.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-12-02 12:25:18 +01:00
aoc-2026-1 solved day1 2026-12-01 11:10:09 +01:00
aoc-2026-2 solved day2 2026-12-02 12:25:18 +01:00
aoc-utils initial commit 2026-11-30 22:11:11 +01:00
.gitignore initial commit 2026-11-30 22:11:11 +01:00
Cargo.lock solved day2 2026-12-02 12:25:18 +01:00
Cargo.toml solved day2 2026-12-02 12:25:18 +01:00
flake.lock solved day2 2026-12-02 12:25:18 +01:00
flake.nix initial commit 2026-11-30 22:11:11 +01:00
README.md initial commit 2026-11-30 22:11:11 +01:00

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