Go to file
Matej Janezic 000003103e
solution: day 23
2024-12-23 19:38:23 +01:00
.cargo feat: create repo from template 2024-11-29 00:21:20 +01:00
data solution: day 23 2024-12-23 19:38:23 +01:00
src solution: day 23 2024-12-23 19:38:23 +01:00
utils feat(scaffold): change default return type to Option<usize> 2024-12-09 20:10:30 +01:00
.env.example feat: create repo from template 2024-11-29 00:21:20 +01:00
.gitignore feat: create repo from template 2024-11-29 00:21:20 +01:00
Cargo.lock solution: day 21 2024-12-21 17:51:56 +01:00
Cargo.toml solution: day 21 2024-12-21 17:51:56 +01:00
LICENSE feat: create repo from template 2024-11-29 00:21:20 +01:00
README.md feat: create repo from template 2024-11-29 00:21:20 +01:00

README.md

Advent-of-Code 2024

This is a dumbed down version of fspoettel/advent-of-code-rust with some extra features

Project overview

Project structure

  • data/ :
    • examples/: example files go here; you can push this as test are run in ci
    • inputs/: this directory is gitignored, input files go here
  • src/ :
    • bin/:
      • <day>.rs: solution files
    • lib.rs: library entrypoint, reusable code goes here
    • template.rs: contains template code
  • utils/: binary packages with convenience scripts structured using cargo workspaces
  • .env.example: example dotenv file

Cli

  • cargo scaffold <day>: prepare solution files for day
  • cargo download <day>: download input file for day
  • cargo solve <day>: run solution against input for day

Run cargo build --workspace --release once so scaffold and download packages get compiled, otherwise they will have to be compiled on first run.

dotenv

set TOKEN to AoC session Cookie

FAQ

How are your commits numbered in ascending order?

https://westling.dev/b/extremely-linear-git