Simple rust project structure for Advent of Code.
There's nothing fancy going on here. I was just going through 2022 and realized it would be easy to hand make a template to save some of the boiler plate setup for each day.
Each day:
- copy your input in to
input/day{x}.txt
- Edit
day{x}.rs
:- Set
INPUT
to be the sample input. - Update the
assert_eq!
lines to match the example provided - Implement the
day{x}_part1
andday{x}_part2
functions
- Set
cargo test
to run your tests with the example inputcargo run
to run with your input