mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-27 05:40:32 +01:00
Split lib/bin.
This commit is contained in:
13
2018/src/lib.rs
Normal file
13
2018/src/lib.rs
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
extern crate chrono;
|
||||||
|
#[macro_use] extern crate itertools;
|
||||||
|
extern crate regex;
|
||||||
|
|
||||||
|
pub mod common;
|
||||||
|
pub mod day01;
|
||||||
|
pub mod day02;
|
||||||
|
pub mod day03;
|
||||||
|
pub mod day04;
|
||||||
|
pub mod day05;
|
||||||
|
pub mod day06;
|
||||||
|
pub mod day07;
|
||||||
|
pub mod day08;
|
||||||
@@ -1,23 +1,14 @@
|
|||||||
extern crate chrono;
|
extern crate chrono;
|
||||||
extern crate clap;
|
extern crate clap;
|
||||||
#[macro_use] extern crate itertools;
|
extern crate aoc_2018;
|
||||||
extern crate regex;
|
|
||||||
|
|
||||||
use std::fs;
|
use std::fs;
|
||||||
use std::io;
|
use std::io;
|
||||||
use std::time::Instant;
|
use std::time::Instant;
|
||||||
|
|
||||||
use clap::{App, Arg};
|
use aoc_2018::*;
|
||||||
|
|
||||||
pub mod common;
|
use clap::{App, Arg};
|
||||||
pub mod day01;
|
|
||||||
pub mod day02;
|
|
||||||
pub mod day03;
|
|
||||||
pub mod day04;
|
|
||||||
pub mod day05;
|
|
||||||
pub mod day06;
|
|
||||||
pub mod day07;
|
|
||||||
pub mod day08;
|
|
||||||
|
|
||||||
fn get_impl(day: &str) -> Box<common::Solution> {
|
fn get_impl(day: &str) -> Box<common::Solution> {
|
||||||
match day.parse() {
|
match day.parse() {
|
||||||
|
|||||||
Reference in New Issue
Block a user