My solutions for Advent of Code 2020 in Rust.
โ ๏ธ My input files are not committed as per request of the Advent of Code author.
- Make sure Rust is installed on the system.
- Add the input in a file named
input.txt
next to the solution before running. - Run:
cargo run --bin {day}
Rust is blazingly fast, but cargo run
builds and runs an unoptimized version to improve
compile times at the expense of runtime speed. To achieve ludicrous speed:
Run a release build:
cargo build -r
Then:
./target/release/{day}
Enjoy!