Rust solutions for Advent of Code.
Run the helper script to scaffold a new day:
./new_day.shThe script will prompt you for the year and day, then create:
- A Rust source file with a basic template (
src/bin/y{year}_d{day}.rs) - An empty input file (
inputs/y{year}_d{day}.txt)
After creation, paste your puzzle input into the generated .txt file.
echo "inputs/y2015_d01.txt" | cargo run --bin y2015_d01cargo test --bin y2015_d01src/lib.rs- shared helperssrc/bin/y{year}_d{day}.rs- solutionsinputs/y{year}_d{day}.txt- puzzle inputsnew_day.sh- script to create new challenge files