Advent of Code Template
A rust template for Advent of Code.
Usage
run
AOC_YEAR=2020 AOC_SESSION=<Your session key> AOC_INPUT=<Your input directory> cargo build
to set up the project.
session
and input dir
can be set later in .env
.
Notes
- The module name is aoc-2020 but the template should work for any year
- The solution files are part of the same crate and so, their dependencies are shared.
build.rs
is very brittle and made only for the initial state of the repo.- The author in
Cargo.toml
is me. Change it if you want.
Warning
build.rs
after you have started writing your code.
Do not run Future Thoughts
- Make solutions part of a workspace so they can have independent dependencies.
- Make
build.rs
more flexible.