I'm doing my Advent of Code 2022 in Rust this year.
To add a day use Cargo Generate to generate a crate for that day:
$ cargo generate --name day02 --path ./template
Add the new day to the workspace Cargo.toml
:
[workspace]
members = [
"day01",
"day02", # Day 2!
]
To run a specific day:
$ cargo run --bin day02