My Rust solutions for Advent of Code.
Heavenly inspired by Tim Kurvers
Install Rust for your platform and make sure cargo
is available.
The puzzle input will automatically downloaded in the src/puzzle_inputs
folder.
But before that you need to first login to advent-of-code website and retrieve the session id from the cookie.
Then copy .env.example
to .env
and add your session id in the AOC_SESSION
environment variable.
To run a solution provide the year and day
cargo run 2015 1
or
cargo run 2015 01
To monitor code changes and re-run solutions during development, first:
cargo install cargo-watch
Then:
cargo watch -x "run 2015 01"
To run tests for utilities:
cargo test