inital commit
This commit is contained in:
commit
b8f85706f1
11 changed files with 502 additions and 0 deletions
9
template/Cargo.toml
Normal file
9
template/Cargo.toml
Normal file
|
@ -0,0 +1,9 @@
|
|||
[package]
|
||||
name = "template"
|
||||
authors.workspace = true
|
||||
description.workspace = true
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
|
||||
[dependencies]
|
||||
aoc_libs.workspace = true
|
0
template/src/input.txt
Normal file
0
template/src/input.txt
Normal file
14
template/src/main.rs
Normal file
14
template/src/main.rs
Normal file
|
@ -0,0 +1,14 @@
|
|||
mod part1;
|
||||
mod part2;
|
||||
mod parse;
|
||||
|
||||
fn main() {
|
||||
let input = include_str!("./input.txt");
|
||||
let structured_input = parse::parse(input);
|
||||
|
||||
println!("Part One");
|
||||
println!("Result: {}", part1::part1());
|
||||
|
||||
println!("Part Two");
|
||||
println!("Result: {}", part2::part2());
|
||||
}
|
14
template/src/parse.rs
Normal file
14
template/src/parse.rs
Normal file
|
@ -0,0 +1,14 @@
|
|||
pub fn parse(input: &str) -> usize {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn test_parse() {
|
||||
let input = concat!();
|
||||
assert_eq!(0, 0);
|
||||
}
|
||||
}
|
14
template/src/part1.rs
Normal file
14
template/src/part1.rs
Normal file
|
@ -0,0 +1,14 @@
|
|||
use crate::parse::*
|
||||
pub fn part1() -> usize {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn test_part1() {
|
||||
assert_eq!(0, 0);
|
||||
}
|
||||
}
|
15
template/src/part2.rs
Normal file
15
template/src/part2.rs
Normal file
|
@ -0,0 +1,15 @@
|
|||
use crate::parse::*
|
||||
|
||||
pub fn part2() -> usize {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn test_part2() {
|
||||
assert_eq!(0, 0);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue