Matej Janezic
0000030019
Added workspace structure to Cargo.toml. This way we don't need to build all dependencies for helper binaries. Also changed .cargo/config accordingly. |
||
---|---|---|
.cargo | ||
.github/workflows | ||
src | ||
utils | ||
.env.example | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
LICENSE | ||
README.md |
README.md
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 hereexamples/
: example files go here; you can push this as test are run in ciutils/
: utils files go herelib.rs
: contains framework code
.env.example
: example dotenv fileutils/
: binary packages with convenience scripts structured using cargo workspaces
Cli
cargo scaffold <day>
: prepare solution files forday
cargo download <day>
: download input file forday
cargo solve <day>
: run solution against input forday
dotenv
set YEAR
to whichever year you are solving for and TOKEN
to AoC session Cookie