See https://adventofcode.com/2022
cargo run --bin dayXX
where dayXX
is the day you want to run. For example, to run day 1:
cargo run --bin day01
For each day, I add a test for the sample input given in the problem description. This can be run with
cargo test
or
cargo test --bin dayXX
- Make a new branch from master.
- Copy
template.rs
intosrc/bin
. Rename itdayXX.rs
as described above. - Replace all occurences of
dayXX
in the file with the actual day. - Solve it
- Create a pull request, make sure all tests pass.