To add a new day's solution, follow these steps:
- Create the input file at
input/yearXXXX/dayYY.txt
- Replace XXXX with the year (e.g., 2024) and YY with the day number (e.g., 01)
- Create a new file at
src/yearXXXX/dayYY.rs
- You can copy the template from
src/template_year/template_day.rs
- Create a test file at
tests/yearXXXX/dayYY.rs
- You can copy the template from
tests/template_year/template_day.rs
- In
src/lib.rs
, add the day to thelib!
macro: - In
tests/tests.rs
, add the day to thetest!
macro: - In
benches/benchmarks.rs
, add the day to thebenchmark!
macro: - In
src/main.rs
, add the day to therun!
macro: