Skip to content

mrBussy/advent_of_code_2022

Repository files navigation

🎄 Advent of Code 2022

Language

Solutions for Advent of Code in Rust.

2022 Results

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


Dependancies

Add Clippy for Cargo.

Run

cargo run

Run with logging

RUST_LOG=info cargo run

Run in test mode

cargo test

Use the cargo runner

cargo aoc

Setting up the CLI

You 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

Releases

No releases published

Packages

No packages published