Compare commits
No commits in common. "d8f191fd9bd86a932dc33e088e6ad844d0dfcf4a" and "beeb89a2f6a3cfca6abdcb4ebbc25a536abbfbaf" have entirely different histories.
d8f191fd9b
...
beeb89a2f6
40
Cargo.toml
40
Cargo.toml
@ -14,26 +14,26 @@ default = ["part1", "part2", "today"]
|
|||||||
part1 = []
|
part1 = []
|
||||||
part2 = []
|
part2 = []
|
||||||
today = []
|
today = []
|
||||||
day01 = []
|
01 = []
|
||||||
day02 = []
|
02 = []
|
||||||
day03 = []
|
03 = []
|
||||||
day04 = []
|
04 = []
|
||||||
day05 = []
|
05 = []
|
||||||
day06 = []
|
06 = []
|
||||||
day07 = []
|
07 = []
|
||||||
day08 = []
|
08 = []
|
||||||
day09 = []
|
09 = []
|
||||||
day10 = []
|
10 = []
|
||||||
day11 = []
|
11 = []
|
||||||
day12 = []
|
12 = []
|
||||||
day13 = []
|
13 = []
|
||||||
day14 = []
|
14 = []
|
||||||
day15 = []
|
15 = []
|
||||||
day16 = []
|
16 = []
|
||||||
day17 = []
|
17 = []
|
||||||
day18 = []
|
18 = []
|
||||||
day19 = []
|
19 = []
|
||||||
day20 = []
|
20 = []
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -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())
|
||||||
|
Loading…
Reference in New Issue
Block a user