Advent of Code is a yearly programming challenge that encourages people to solve problems using programming. This repository holds any attempts I make at completing the challenge!
I decided to do the 2020, 2021, 2022, 2023, and 2024 challenge using Rust. I don't use Rust professionally, so I want to flex my problem solving skills with it using Advent of Code.
- Install the Rust tooling
- Navigate to
rust-202#/
for whatever year you want to run cargo run
will run a CLI program that outputs info for each of the challengescargo test
will run all the unit tests
- Install the utils crate to your system by running
cargo install --path aoc-utils
from the root of the repository. - Get the session token by inspecting an authenticated request to the Advent of Code website. There's not currently an easier way that I know, unfortunately.
- Place that session token in a
.env
file at the root of the repository with the keyAOC_SESSION_TOKEN
. - Use the
aoc-utils
command as you're developing your solutions! See what's available by runningaoc-utils --help
.
- More helper functions for common input parsing needs
- Run a single day instead of all of them
- Instructions on how to use the CLI tooling
- Submission of answers (and rate limiting so I don't accidentally spam the server)
- Publish helper crates to crates.io
- More CLI options (like setting the
input
storage directory) - Festive ASCII art
- Remove deprecated read_input function in 2021's code
- Set up a workspace so I can have all years depend on workspace dependencies, which makes me feel better about pulling in a variety of helpful crates