Compare commits
2 Commits
beeb89a2f6
...
d8f191fd9b
Author | SHA1 | Date | |
---|---|---|---|
d8f191fd9b | |||
77cb399748 |
40
Cargo.toml
40
Cargo.toml
@ -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 = []
|
||||
|
||||
|
||||
|
||||
|
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user