diff options
| author | Bond_009 <bond.009@outlook.com> | 2022-12-01 22:30:22 +0100 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2022-12-01 22:30:22 +0100 |
| commit | baf4910870a6e8999802b9a4a22eabd4142a34e3 (patch) | |
| tree | 2d11443dc21e53bd0d99d015cf789937d6d95862 /2021/src/main.rs | |
| parent | 49d0c908f24b2c193c9deed1716fe36061ba26a1 (diff) | |
Move all Advent of Codes into one repo
Diffstat (limited to '2021/src/main.rs')
| -rw-r--r-- | 2021/src/main.rs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/2021/src/main.rs b/2021/src/main.rs new file mode 100644 index 0000000..ae5f8f2 --- /dev/null +++ b/2021/src/main.rs @@ -0,0 +1,22 @@ +use std::env; +use std::error::Error; +use std::path::Path; + +#[cfg(day01)] +use day01::solve; + +#[cfg(day02)] +use day02::solve; + +#[cfg(day01)] +mod day01; + +#[cfg(day02)] +mod day02; + +fn main() -> Result<(), Box<dyn Error>> { + let args = env::args().last().unwrap(); + let path = Path::new(&args); + + solve(path) +} |
