Advent of Code 2022
Prerequisites
Setup
asdf install
Adding package for a new challenge
- Run
cookiecutter .scaffold/day
- Add
"day_NN"
tomembers
array in Cargo.toml - Run
cargo check
to triggerCargo.lock
update
Documentation
To compile and display documentation run:
cargo doc --open
Day 1
cargo run -p day_01 -- ./day_01/input.txt
Day 2
cargo run -p day_02 -- ./day_02/input.txt
Day 3
cargo run -p day_03 -- ./day_03/input.txt
Day 4
cargo run -p day_04 -- ./day_04/input.txt
Day 5
cargo run -p day_05 -- ./day_05/input.txt
Day 6
cargo run -p day_06 -- ./day_06/input.txt
Day 7
cargo run -p day_07 -- ./day_07/input.txt
Day 8
cargo run -p day_08 -- ./day_08/input.txt