star

Attribute Macro star 

Source
#[star]
Expand description

Attribute macro to mark a function as an Advent of Code solution

§Example

use aoc_star_derive::star;

#[star(day = 1, part = 1, year = 2024)]
fn solve_day1_part1(input: String) -> String {
   // solution code here
   "solution".to_string()
   }

#[star(day = 1, part = 2, year = 2024)]
fn solve_day1_part2(input: String) -> String {
  // solution code here
  "solution".to_string()
  }

#[star(day = 2, part = 1)]
fn solve_day2_part1(input: String) -> String {
 // solution code here
 "solution".to_string()
 }