Go to file Use this template
Matej Janezic 0000030019
feat!: decouple download and scaffold from main package into workspace
Added workspace structure to Cargo.toml. This way we don't need to build
all dependencies for helper binaries. Also changed .cargo/config
accordingly.
2023-11-20 15:44:14 +01:00
.cargo feat!: decouple download and scaffold from main package into workspace 2023-11-20 15:44:14 +01:00
.github/workflows feat: fmt ci 2022-12-08 21:29:50 +01:00
src feat!: decouple download and scaffold from main package into workspace 2023-11-20 15:44:14 +01:00
utils feat!: decouple download and scaffold from main package into workspace 2023-11-20 15:44:14 +01:00
.env.example feat: download cli command 2022-11-28 21:59:26 +01:00
.gitignore feat: add github ci for tests, cargo check and clippy 2022-11-30 21:43:29 +01:00
Cargo.lock feat!: decouple download and scaffold from main package into workspace 2023-11-20 15:44:14 +01:00
Cargo.toml feat!: decouple download and scaffold from main package into workspace 2023-11-20 15:44:14 +01:00
LICENSE feat: add MIT license 2022-12-12 22:39:45 +01:00
README.md feat!: decouple download and scaffold from main package into workspace 2023-11-20 15:44:14 +01:00

README.md

ci

Advent-of-Code {YEAR}

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

Project overview

Project structure

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

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

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