No description
  • Rust 90.6%
  • Nix 9.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-08 01:15:09 +01:00
aoc-2018-9 refactor with fetch-aoc 2026-11-06 20:14:35 +01:00
aoc-2018-10 solved day 10 2026-11-08 01:15:09 +01:00
aoc-utils refactor with fetch-aoc 2026-11-06 20:14:35 +01:00
.gitignore fix merge conflict 2026-11-06 20:13:21 +01:00
Cargo.lock solved day 10 2026-11-08 01:15:09 +01:00
Cargo.toml refactor with fetch-aoc 2026-11-06 20:14:35 +01:00
flake.lock solved day 10 2026-11-08 01:15:09 +01:00
flake.nix solved day 10 2026-11-08 01:15:09 +01:00
README.md refactor with fetch-aoc 2026-11-06 20:14:35 +01:00

Advent of Code 2018

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 2018 --day 10

This creates aoc-2018-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-2018-9