We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47e4f22 commit fb4ac26Copy full SHA for fb4ac26
src/template/mod.rs
@@ -45,4 +45,22 @@ macro_rules! solution {
45
run_part(part_two, &input, DAY, 2);
46
}
47
};
48
+ ($day:expr, 1) => { /// Allows solving part one in isolation
49
+ const DAY: advent_of_code::Day = advent_of_code::day!($day);
50
+
51
+ fn main() {
52
+ use advent_of_code::template::runner::*;
53
+ let input = advent_of_code::template::read_file("inputs", DAY);
54
+ run_part(part_one, &input, DAY, 1);
55
+ }
56
+ };
57
+ ($day:expr, 2) => { /// Allows solving part two in isolation
58
59
60
61
62
63
+ run_part(part_two, &input, DAY, 2);
64
65
66
0 commit comments