initial commit
This commit is contained in:
commit
6368f3a66e
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
/target
|
||||
32
Cargo.lock
generated
Normal file
32
Cargo.lock
generated
Normal file
@ -0,0 +1,32 @@
|
||||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
version = 4
|
||||
|
||||
[[package]]
|
||||
name = "anyhow"
|
||||
version = "1.0.93"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "4c95c10ba0b00a02636238b814946408b1322d5ac4760326e6fb8ec956d85775"
|
||||
|
||||
[[package]]
|
||||
name = "aoc2016"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"itertools",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "either"
|
||||
version = "1.13.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0"
|
||||
|
||||
[[package]]
|
||||
name = "itertools"
|
||||
version = "0.13.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
|
||||
dependencies = [
|
||||
"either",
|
||||
]
|
||||
8
Cargo.toml
Normal file
8
Cargo.toml
Normal file
@ -0,0 +1,8 @@
|
||||
[package]
|
||||
name = "aoc2016"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
anyhow = "1.0.93"
|
||||
itertools = "0.13.0"
|
||||
1
src/days.rs
Normal file
1
src/days.rs
Normal file
@ -0,0 +1 @@
|
||||
pub mod d1;
|
||||
35
src/days/d1.rs
Normal file
35
src/days/d1.rs
Normal file
@ -0,0 +1,35 @@
|
||||
use crate::prelude::*;
|
||||
|
||||
pub type I = String;
|
||||
pub type O = i64;
|
||||
|
||||
fn solve (data: I) -> O {
|
||||
0
|
||||
}
|
||||
|
||||
fn silver (data: I) -> O {
|
||||
0
|
||||
}
|
||||
|
||||
fn gold (data: I) -> O {
|
||||
0
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use super::*;
|
||||
|
||||
fn read () -> I {
|
||||
Default::default()
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn silver () {
|
||||
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn gold () {
|
||||
|
||||
}
|
||||
}
|
||||
3
src/lib.rs
Normal file
3
src/lib.rs
Normal file
@ -0,0 +1,3 @@
|
||||
pub mod days;
|
||||
pub mod utils;
|
||||
pub mod prelude;
|
||||
3
src/prelude.rs
Normal file
3
src/prelude.rs
Normal file
@ -0,0 +1,3 @@
|
||||
pub use crate::utils::*;
|
||||
pub use anyhow::Error;
|
||||
pub use itertools::Itertools;
|
||||
0
src/utils.rs
Normal file
0
src/utils.rs
Normal file
Loading…
Reference in New Issue
Block a user