Go to file
Matej Janezic 00000380c1
wip: part 1 debugging
2023-12-20 12:30:22 +01:00
.cargo feat: initial commit 2023-11-29 22:03:52 +01:00
data wip: part 1 debugging 2023-12-20 12:30:22 +01:00
src wip: part 1 debugging 2023-12-20 12:30:22 +01:00
utils feat: initial commit 2023-11-29 22:03:52 +01:00
.env.example feat: initial commit 2023-11-29 22:03:52 +01:00
.gitignore feat: initial commit 2023-11-29 22:03:52 +01:00
Cargo.lock feat: initial commit 2023-11-29 22:03:52 +01:00
Cargo.toml feat: initial commit 2023-11-29 22:03:52 +01:00
LICENSE feat: initial commit 2023-11-29 22:03:52 +01:00
README.md fix: remove ci badge 2023-12-01 07:01:32 +01:00

README.md

Advent-of-Code 2023

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

This project targets nightly build of rust, since some preview features are enabled

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 YEAR to whichever year you are solving for and TOKEN to AoC session Cookie

FAQ

How are your commits numbered in ascending order?

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