Compare commits

...

2 Commits

Author SHA1 Message Date
d8f191fd9b Renamed daily fearures 2022-12-02 04:37:00 +00:00
77cb399748 Improved formatting 2022-12-02 04:36:50 +00:00
2 changed files with 23 additions and 23 deletions

View File

@ -14,26 +14,26 @@ default = ["part1", "part2", "today"]
part1 = []
part2 = []
today = []
01 = []
02 = []
03 = []
04 = []
05 = []
06 = []
07 = []
08 = []
09 = []
10 = []
11 = []
12 = []
13 = []
14 = []
15 = []
16 = []
17 = []
18 = []
19 = []
20 = []
day01 = []
day02 = []
day03 = []
day04 = []
day05 = []
day06 = []
day07 = []
day08 = []
day09 = []
day10 = []
day11 = []
day12 = []
day13 = []
day14 = []
day15 = []
day16 = []
day17 = []
day18 = []
day19 = []
day20 = []

View File

@ -1,16 +1,16 @@
use chrono::prelude::*;
use std::path::Path;
use std::time::Instant;
use chrono::prelude::*;
mod day01;
mod day02;
fn main() {
let today = Local::now().day();
let now = Instant::now();
if cfg!(feature ="day01") || (cfg!(feature ="today") && today == 1) {
if cfg!(feature = "day01") || (cfg!(feature = "today") && today == 1) {
day01::run();
}
if cfg!(feature ="day02") || (cfg!(feature ="today") && today == 2) {
if cfg!(feature = "day02") || (cfg!(feature = "today") && today == 2) {
day02::run();
}
println!("Finished, time taken: {:?}", now.elapsed())