This is a rust template that you can use with cargo-generate
to quickly create
a Advent of Code solution in Rust
-
Create a cargo workspace:
# file: AdventOfCode/2022/Cargo.toml [workspace] members = [ "day/*" ] [workspace.dependencies] color-eyre = "0.6.2"
-
Create a subdirectory under that workspace (ie. I use
day/01
) -
Move into the created directory
-
Run
cargo generate --init --name 'aoc-2022-01' gh:salameme/aoc-template