This repo contains solutions for the 2022 Advent of Code in Rust.
cargo run --bin aoc -- day0 --input test.txt
aoc/src/commands/day0.rs
is a template for all coming days create quick and easy subcommands for running solutions.
Copy the template to the new day:
cargo xtask new-day -n day<?>
Make the new day public in the aoc/src/commands/mod.rs
Add the new day to the SubCommand
struct in aoc/src/main.rs
Some days will have multiple parts, from experience you should create a new subcommand for the second part, EX day2b.rs, and modify from there instead of changing your answer for part one as some of the next days may rely on day1 part a.