Solutions for Advent of Code in Rust.
| Day | Part 1 | Part 2 |
|---|---|---|
| Day 1 | ⭐ | ⭐ |
| Day 2 | ⭐ | ⭐ |
| Day 3 | ⭐ | ⭐ |
| Day 4 | ⭐ | ⭐ |
| Day 5 | ⭐ | ⭐ |
| Day 6 | ⭐ | ⭐ |
| Day 7 | ⭐ | ⭐ |
| Day 8 | ⭐ | ⭐ |
| Day 9 | ⭐ | ⭐ |
| Day 10 | ⭐ | ⭐ |
| Day 11 | ⭐ |
NOTE
This only can handle 2022 due to a limitation of the aoc-runner
Add Clippy for Cargo.
cargo runRUST_LOG=info cargo runcargo testcargo aocYou will need to find your session token for the AoC in order for cargo-aoc to work. Thankfully, finding your token is easy since it is stored in your Browser's cookies. Open up the devtools of your browser, and then :
- Firefox: "Storage" tab, Cookies, and copy the "Value" field of the session cookie.
- Google Chrome / Chromium: "Application" tab, Cookies, and copy the "Value" field of the session cookie. Once you have it, simply run : cargo aoc credentials -s {token}
You're now ready to start coding !
NOTE: If for some reason your token has changed, dont forget to change it back.
cargo aoc credentials will show the currently stored user token
