Because the implementations use nightly-only experimental features, first set the channel to nightly
:
rustup toolchain install nightly
rustup default nightly
Only run the solutions from the project root directory.
To run solutions, do
cargo run -- <day> <part>
For example, to run the solution from Day 2 Part 1, do:
cargo run -- 2 1
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | - | - | - | 1 ✔️ | 2 ✔️ | 3 ✔️ |
4 ✔️ | 5 ✔️ | 6 ✔️ | 7 ✔️ | 8 ✔️ | 9 ✔️ | 10 ✔️ |
11 ✔️ | 12 ✔️ | 13 ✔️ | 14 ✔️ | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | - | - | - | - | - | - |