Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 835 Bytes

README.md

File metadata and controls

34 lines (23 loc) · 835 Bytes

Advent Of Code in Rust

rust

My rust solutions to Advent of Code puzzles.

I previously used cargo-aoc, but switched to a solution that combines all years instead, as cargo-aoc does not support workspaces.

Edit files (src/aoc{year}/day{day}.rs) to add solutions for new days/years. Then add references to the new files in src/lib.rs, src/main.rs, and tests/test.rs.

Running Solutions

cargo build
cargo run
cargo run aoc2024
cargo run aoc2024::day01

To run a release version add --release to the above arguments

To run tests:

cargo test
cargo test aoc2024::day01