No description
- Rust 90.6%
- Nix 9.4%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| aoc-2018-9 | ||
| aoc-2018-10 | ||
| aoc-utils | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| flake.lock | ||
| flake.nix | ||
| README.md | ||
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