Skip to content

will-lynas/advent-of-code-rust

Repository files navigation

advent-of-code

My solutions to Advent of Code written in Rust

Running the code

Inputs

Inputs should be placed in the path input/yearXXXX/dayYY.txt

Solutions

  • Run everything: cargo run
  • Specific year: cargo run year2024
  • Specific day: cargo run year2024 day04
  • To run with the release profile (much faster): cargo run --release or cargo run --release -- year2024 day04

Examples

The examples given in the text of each problem are used in tests.

  • Run everything: cargo test
  • Specific year: cargo test year2024
  • Specific day: cargo test year2024::day04
  • Specific part: cargo test year2024::day04::part2

Benchmarks

  • Everything: cargo bench
  • Specific year: cargo bench year2024
  • Specific day: cargo bench year2024/day04
  • Specific part: cargo bench year2024/day04/part2

Thank you to maneatingape/advent-of-code-rust for the structure of this repo.

About

My solutions to Advent of Code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages