Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 1 KB

README.md

File metadata and controls

18 lines (12 loc) · 1 KB

Advent of Code 2024

My solutions for the 2024 edition of Advent of Code written in Rust.

Each day, I usually go for speed, and after getting both stars will refactor the solution to be (even more) idiomatic Rust code.

Project Layout

The project uses cargo's workspace feature, each day is a separate workspace member. utils contains various helpers for things that come up a lot in AoC, including some basic math stuff (2D vector, box and grid), algorithms (bfs, dijkstra, ..) and helpers for parsing strings into data via regular expressions.

aoc_derive implements the #[aoc_main] proc_macro that implements the main() function for each day.

There's also an init_day.sh script that will download my input into a file, create the project for the day and will open the main.rs in neovim with some AoC-specific key-bindings and window layout (see aoc.lua). The scripts expects your session cookie to be in the .session file.