initial commit

This commit is contained in:
YK 2024-11-19 18:44:07 +03:00
commit 6368f3a66e
8 changed files with 83 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/target

32
Cargo.lock generated Normal file
View 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
View 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
View File

@ -0,0 +1 @@
pub mod d1;

35
src/days/d1.rs Normal file
View 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
View File

@ -0,0 +1,3 @@
pub mod days;
pub mod utils;
pub mod prelude;

3
src/prelude.rs Normal file
View File

@ -0,0 +1,3 @@
pub use crate::utils::*;
pub use anyhow::Error;
pub use itertools::Itertools;

0
src/utils.rs Normal file
View File