This is my solution(s) for the Advent of Code challenge, 2022!
This year I've done the challenge in Rust, which I have never coded in before. Fun!
To run this repo (and thus the code challenge solutions):
- Install Rust
- If you're in WSL (or just a vanilla linux install), install the build tools:
sudo apt install build-essential
- Clone this repo
- Run (and compile) the code for a given day:
cargo run -- --day 1 --input-file ./src/inputs/day1.txt
You can ignore the second param (input-file
) and the script will look for a "dayX.txt" file in the src/inputs
directory. This is just a shortcut.
cargo run -- --day 1
The two commands above are equivalent.