macro_rules! parts {
() => { ... };
(1) => { ... };
(2) => { ... };
(1, 2) => { ... };
}
Expand description
A macro for running with aocli.
Inserts fn main
and passes your part 1 and part 2 functions to the aoclib
library where applicable.
aoc::parts!();
if neither part is implementedaoc::parts!(1);
if only part 1 is implemented (fn part_1
)aoc::parts!(2);
if only part 2 is implemented (fn part_2
)aoc::parts!(1, 2);
if both parts are implemented