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 = [] part1 = []
part2 = [] part2 = []
today = [] today = []
01 = [] day01 = []
02 = [] day02 = []
03 = [] day03 = []
04 = [] day04 = []
05 = [] day05 = []
06 = [] day06 = []
07 = [] day07 = []
08 = [] day08 = []
09 = [] day09 = []
10 = [] day10 = []
11 = [] day11 = []
12 = [] day12 = []
13 = [] day13 = []
14 = [] day14 = []
15 = [] day15 = []
16 = [] day16 = []
17 = [] day17 = []
18 = [] day18 = []
19 = [] day19 = []
20 = [] day20 = []

View File

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