From 242989bb95ad7debd1d2a91879fd22ca39df65f8 Mon Sep 17 00:00:00 2001 From: Gabe Venberg Date: Sun, 19 Nov 2023 20:32:41 -0600 Subject: [PATCH] switched to workspaces. This should let me make a cross-day library. --- Cargo.lock | 105 ++++++++++++------ Cargo.toml | 58 +++------- days/day01/Cargo.toml | 6 + {src/day01 => days/day01/src}/input.txt | 0 src/day01/solve.rs => days/day01/src/main.rs | 0 {src/day01 => days/day01/src}/parse.rs | 0 {src/day01 => days/day01/src}/part1.rs | 0 {src/day01 => days/day01/src}/part2.rs | 0 days/day02/Cargo.toml | 6 + {src/day02 => days/day02/src}/input.txt | 0 src/day02/solve.rs => days/day02/src/main.rs | 0 {src/day02 => days/day02/src}/part1.rs | 0 {src/day02 => days/day02/src}/part2.rs | 0 {src/day02 => days/day02/src}/utilities.rs | 0 days/day03/Cargo.toml | 6 + {src/day03 => days/day03/src}/input.txt | 0 src/day03/solve.rs => days/day03/src/main.rs | 0 {src/day03 => days/day03/src}/part1.rs | 0 {src/day03 => days/day03/src}/part2.rs | 0 {src/day03 => days/day03/src}/utilities.rs | 0 days/day04/Cargo.toml | 10 ++ {src/day04 => days/day04/src}/input.txt | 0 src/day04/solve.rs => days/day04/src/main.rs | 0 {src/day04 => days/day04/src}/part1.rs | 0 {src/day04 => days/day04/src}/part2.rs | 0 {src/day04 => days/day04/src}/utilities.rs | 0 days/day05/Cargo.toml | 10 ++ {src/day05 => days/day05/src}/input.txt | 0 src/day05/solve.rs => days/day05/src/main.rs | 0 {src/day05 => days/day05/src}/part1.rs | 0 {src/day05 => days/day05/src}/part2.rs | 0 {src/day05 => days/day05/src}/utilities.rs | 0 days/day06/Cargo.toml | 6 + {src/day06 => days/day06/src}/input.txt | 0 src/day06/solve.rs => days/day06/src/main.rs | 0 {src/day06 => days/day06/src}/part1.rs | 0 {src/day06 => days/day06/src}/part2.rs | 0 {src/day06 => days/day06/src}/utilities.rs | 4 - days/day07/Cargo.toml | 11 ++ {src/day07 => days/day07/src}/file_tree.rs | 0 {src/day07 => days/day07/src}/input.txt | 0 src/day07/solve.rs => days/day07/src/main.rs | 0 {src/day07 => days/day07/src}/parser.rs | 0 {src/day07 => days/day07/src}/part1.rs | 0 {src/day07 => days/day07/src}/part2.rs | 0 days/day08/Cargo.toml | 6 + {src/day08 => days/day08/src}/input.txt | 0 src/day08/solve.rs => days/day08/src/main.rs | 1 - {src/day08 => days/day08/src}/part1.rs | 3 +- {src/day08 => days/day08/src}/part2.rs | 3 +- {src/day08 => days/day08/src}/utilities.rs | 1 - template/Cargo.toml | 5 + {src/template => template/src}/input.txt | 0 src/template/solve.rs => template/src/main.rs | 1 + {src/template => template/src}/part1.rs | 1 + {src/template => template/src}/part2.rs | 1 + {src/template => template/src}/utilities.rs | 1 + 57 files changed, 156 insertions(+), 89 deletions(-) create mode 100644 days/day01/Cargo.toml rename {src/day01 => days/day01/src}/input.txt (100%) rename src/day01/solve.rs => days/day01/src/main.rs (100%) rename {src/day01 => days/day01/src}/parse.rs (100%) rename {src/day01 => days/day01/src}/part1.rs (100%) rename {src/day01 => days/day01/src}/part2.rs (100%) create mode 100644 days/day02/Cargo.toml rename {src/day02 => days/day02/src}/input.txt (100%) rename src/day02/solve.rs => days/day02/src/main.rs (100%) rename {src/day02 => days/day02/src}/part1.rs (100%) rename {src/day02 => days/day02/src}/part2.rs (100%) rename {src/day02 => days/day02/src}/utilities.rs (100%) create mode 100644 days/day03/Cargo.toml rename {src/day03 => days/day03/src}/input.txt (100%) rename src/day03/solve.rs => days/day03/src/main.rs (100%) rename {src/day03 => days/day03/src}/part1.rs (100%) rename {src/day03 => days/day03/src}/part2.rs (100%) rename {src/day03 => days/day03/src}/utilities.rs (100%) create mode 100644 days/day04/Cargo.toml rename {src/day04 => days/day04/src}/input.txt (100%) rename src/day04/solve.rs => days/day04/src/main.rs (100%) rename {src/day04 => days/day04/src}/part1.rs (100%) rename {src/day04 => days/day04/src}/part2.rs (100%) rename {src/day04 => days/day04/src}/utilities.rs (100%) create mode 100644 days/day05/Cargo.toml rename {src/day05 => days/day05/src}/input.txt (100%) rename src/day05/solve.rs => days/day05/src/main.rs (100%) rename {src/day05 => days/day05/src}/part1.rs (100%) rename {src/day05 => days/day05/src}/part2.rs (100%) rename {src/day05 => days/day05/src}/utilities.rs (100%) create mode 100644 days/day06/Cargo.toml rename {src/day06 => days/day06/src}/input.txt (100%) rename src/day06/solve.rs => days/day06/src/main.rs (100%) rename {src/day06 => days/day06/src}/part1.rs (100%) rename {src/day06 => days/day06/src}/part2.rs (100%) rename {src/day06 => days/day06/src}/utilities.rs (83%) create mode 100644 days/day07/Cargo.toml rename {src/day07 => days/day07/src}/file_tree.rs (100%) rename {src/day07 => days/day07/src}/input.txt (100%) rename src/day07/solve.rs => days/day07/src/main.rs (100%) rename {src/day07 => days/day07/src}/parser.rs (100%) rename {src/day07 => days/day07/src}/part1.rs (100%) rename {src/day07 => days/day07/src}/part2.rs (100%) create mode 100644 days/day08/Cargo.toml rename {src/day08 => days/day08/src}/input.txt (100%) rename src/day08/solve.rs => days/day08/src/main.rs (94%) rename {src/day08 => days/day08/src}/part1.rs (96%) rename {src/day08 => days/day08/src}/part2.rs (97%) rename {src/day08 => days/day08/src}/utilities.rs (97%) create mode 100644 template/Cargo.toml rename {src/template => template/src}/input.txt (100%) rename src/template/solve.rs => template/src/main.rs (97%) rename {src/template => template/src}/part1.rs (96%) rename {src/template => template/src}/part2.rs (96%) rename {src/template => template/src}/utilities.rs (96%) diff --git a/Cargo.lock b/Cargo.lock index 664c9f3..2e31d83 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3,51 +3,70 @@ version = 3 [[package]] -name = "advent_of_code_2022" +name = "aho-corasick" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2969dcb958b36655471fc61f7e416fa76033bdd4bfed0678d8fee1e2d07a1f0" +dependencies = [ + "memchr", +] + +[[package]] +name = "day01" +version = "0.1.0" + +[[package]] +name = "day02" +version = "0.1.0" + +[[package]] +name = "day03" +version = "0.1.0" + +[[package]] +name = "day04" +version = "0.1.0" +dependencies = [ + "once_cell", + "regex", +] + +[[package]] +name = "day05" +version = "0.1.0" +dependencies = [ + "once_cell", + "regex", +] + +[[package]] +name = "day06" +version = "0.1.0" + +[[package]] +name = "day07" version = "0.1.0" dependencies = [ - "nom", "once_cell", "regex", "thiserror", ] [[package]] -name = "aho-corasick" -version = "0.7.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc936419f96fa211c1b9166887b38e5e40b19958e5b895be7c1f93adec7071ac" -dependencies = [ - "memchr", -] +name = "day08" +version = "0.1.0" [[package]] name = "memchr" -version = "2.5.0" +version = "2.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" - -[[package]] -name = "minimal-lexical" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" - -[[package]] -name = "nom" -version = "7.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a" -dependencies = [ - "memchr", - "minimal-lexical", -] +checksum = "f665ee40bc4a3c5590afb1e9677db74a508659dfd71e126420da8274909a0167" [[package]] name = "once_cell" -version = "1.16.0" +version = "1.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86f0b0d4bf799edbc74508c1e8bf170ff5f41238e5f8225603ca7caaae2b7860" +checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d" [[package]] name = "proc-macro2" @@ -69,9 +88,21 @@ dependencies = [ [[package]] name = "regex" -version = "1.7.0" +version = "1.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e076559ef8e241f2ae3479e36f97bd5741c0330689e217ad51ce2c76808b868a" +checksum = "380b951a9c5e80ddfd6136919eef32310721aa4aacd4889a8d39124b026ab343" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f804c7828047e88b2d32e2d7fe5a105da8ee3264f01902f796c8e067dc2483f" dependencies = [ "aho-corasick", "memchr", @@ -80,21 +111,25 @@ dependencies = [ [[package]] name = "regex-syntax" -version = "0.6.28" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "456c603be3e8d448b072f410900c09faf164fbce2d480456f50eea6e25f9c848" +checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f" [[package]] name = "syn" -version = "2.0.38" +version = "2.0.39" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e96b79aaa137db8f61e26363a0c9b47d8b4ec75da28b7d1d614c2303e232408b" +checksum = "23e78b90f2fcf45d3e842032ce32e3f2d1545ba6636271dcbf24fa306d87be7a" dependencies = [ "proc-macro2", "quote", "unicode-ident", ] +[[package]] +name = "template" +version = "0.1.0" + [[package]] name = "thiserror" version = "1.0.50" diff --git a/Cargo.toml b/Cargo.toml index 4311748..9063675 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,49 +1,19 @@ -[package] -name = "advent_of_code_2022" +[workspace] +members = [ + "template", + "days/*", +] +default-members = [ "days/*" ] +resolver = "2" + +[workspace.package] version = "0.1.0" -authors=["Gabriel Venberg"] +authors = ["Gabriel Venberg"] edition = "2021" +description = "advent of code 2022 in rust" -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - -[[bin]] -name="template" -path="src/template/solve.rs" - -[[bin]] -name="day01" -path="src/day01/solve.rs" - -[[bin]] -name="day02" -path="src/day02/solve.rs" - -[[bin]] -name="day03" -path="src/day03/solve.rs" - -[[bin]] -name="day04" -path="src/day04/solve.rs" - -[[bin]] -name="day05" -path="src/day05/solve.rs" - -[[bin]] -name="day06" -path="src/day06/solve.rs" - -[[bin]] -name="day07" -path="src/day07/solve.rs" - -[[bin]] -name="day08" -path="src/day08/solve.rs" - -[dependencies] -regex="1" +[workspace.dependencies] +regex = "1" once_cell = "1.16" -nom = "7.1" thiserror = "1.0" +nom = "7.1" diff --git a/days/day01/Cargo.toml b/days/day01/Cargo.toml new file mode 100644 index 0000000..ead9da8 --- /dev/null +++ b/days/day01/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "day01" +authors.workspace = true +description.workspace = true +version.workspace = true +edition.workspace = true diff --git a/src/day01/input.txt b/days/day01/src/input.txt similarity index 100% rename from src/day01/input.txt rename to days/day01/src/input.txt diff --git a/src/day01/solve.rs b/days/day01/src/main.rs similarity index 100% rename from src/day01/solve.rs rename to days/day01/src/main.rs diff --git a/src/day01/parse.rs b/days/day01/src/parse.rs similarity index 100% rename from src/day01/parse.rs rename to days/day01/src/parse.rs diff --git a/src/day01/part1.rs b/days/day01/src/part1.rs similarity index 100% rename from src/day01/part1.rs rename to days/day01/src/part1.rs diff --git a/src/day01/part2.rs b/days/day01/src/part2.rs similarity index 100% rename from src/day01/part2.rs rename to days/day01/src/part2.rs diff --git a/days/day02/Cargo.toml b/days/day02/Cargo.toml new file mode 100644 index 0000000..17738f9 --- /dev/null +++ b/days/day02/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "day02" +authors.workspace = true +description.workspace = true +version.workspace = true +edition.workspace = true diff --git a/src/day02/input.txt b/days/day02/src/input.txt similarity index 100% rename from src/day02/input.txt rename to days/day02/src/input.txt diff --git a/src/day02/solve.rs b/days/day02/src/main.rs similarity index 100% rename from src/day02/solve.rs rename to days/day02/src/main.rs diff --git a/src/day02/part1.rs b/days/day02/src/part1.rs similarity index 100% rename from src/day02/part1.rs rename to days/day02/src/part1.rs diff --git a/src/day02/part2.rs b/days/day02/src/part2.rs similarity index 100% rename from src/day02/part2.rs rename to days/day02/src/part2.rs diff --git a/src/day02/utilities.rs b/days/day02/src/utilities.rs similarity index 100% rename from src/day02/utilities.rs rename to days/day02/src/utilities.rs diff --git a/days/day03/Cargo.toml b/days/day03/Cargo.toml new file mode 100644 index 0000000..8fe85a0 --- /dev/null +++ b/days/day03/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "day03" +authors.workspace = true +description.workspace = true +version.workspace = true +edition.workspace = true diff --git a/src/day03/input.txt b/days/day03/src/input.txt similarity index 100% rename from src/day03/input.txt rename to days/day03/src/input.txt diff --git a/src/day03/solve.rs b/days/day03/src/main.rs similarity index 100% rename from src/day03/solve.rs rename to days/day03/src/main.rs diff --git a/src/day03/part1.rs b/days/day03/src/part1.rs similarity index 100% rename from src/day03/part1.rs rename to days/day03/src/part1.rs diff --git a/src/day03/part2.rs b/days/day03/src/part2.rs similarity index 100% rename from src/day03/part2.rs rename to days/day03/src/part2.rs diff --git a/src/day03/utilities.rs b/days/day03/src/utilities.rs similarity index 100% rename from src/day03/utilities.rs rename to days/day03/src/utilities.rs diff --git a/days/day04/Cargo.toml b/days/day04/Cargo.toml new file mode 100644 index 0000000..fe84f67 --- /dev/null +++ b/days/day04/Cargo.toml @@ -0,0 +1,10 @@ +[package] +name = "day04" +authors.workspace = true +description.workspace = true +version.workspace = true +edition.workspace = true + +[dependencies] +once_cell.workspace = true +regex.workspace = true diff --git a/src/day04/input.txt b/days/day04/src/input.txt similarity index 100% rename from src/day04/input.txt rename to days/day04/src/input.txt diff --git a/src/day04/solve.rs b/days/day04/src/main.rs similarity index 100% rename from src/day04/solve.rs rename to days/day04/src/main.rs diff --git a/src/day04/part1.rs b/days/day04/src/part1.rs similarity index 100% rename from src/day04/part1.rs rename to days/day04/src/part1.rs diff --git a/src/day04/part2.rs b/days/day04/src/part2.rs similarity index 100% rename from src/day04/part2.rs rename to days/day04/src/part2.rs diff --git a/src/day04/utilities.rs b/days/day04/src/utilities.rs similarity index 100% rename from src/day04/utilities.rs rename to days/day04/src/utilities.rs diff --git a/days/day05/Cargo.toml b/days/day05/Cargo.toml new file mode 100644 index 0000000..5b0385e --- /dev/null +++ b/days/day05/Cargo.toml @@ -0,0 +1,10 @@ +[package] +name = "day05" +authors.workspace = true +description.workspace = true +version.workspace = true +edition.workspace = true + +[dependencies] +once_cell.workspace = true +regex.workspace = true diff --git a/src/day05/input.txt b/days/day05/src/input.txt similarity index 100% rename from src/day05/input.txt rename to days/day05/src/input.txt diff --git a/src/day05/solve.rs b/days/day05/src/main.rs similarity index 100% rename from src/day05/solve.rs rename to days/day05/src/main.rs diff --git a/src/day05/part1.rs b/days/day05/src/part1.rs similarity index 100% rename from src/day05/part1.rs rename to days/day05/src/part1.rs diff --git a/src/day05/part2.rs b/days/day05/src/part2.rs similarity index 100% rename from src/day05/part2.rs rename to days/day05/src/part2.rs diff --git a/src/day05/utilities.rs b/days/day05/src/utilities.rs similarity index 100% rename from src/day05/utilities.rs rename to days/day05/src/utilities.rs diff --git a/days/day06/Cargo.toml b/days/day06/Cargo.toml new file mode 100644 index 0000000..cbba0f4 --- /dev/null +++ b/days/day06/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "day06" +authors.workspace = true +description.workspace = true +version.workspace = true +edition.workspace = true diff --git a/src/day06/input.txt b/days/day06/src/input.txt similarity index 100% rename from src/day06/input.txt rename to days/day06/src/input.txt diff --git a/src/day06/solve.rs b/days/day06/src/main.rs similarity index 100% rename from src/day06/solve.rs rename to days/day06/src/main.rs diff --git a/src/day06/part1.rs b/days/day06/src/part1.rs similarity index 100% rename from src/day06/part1.rs rename to days/day06/src/part1.rs diff --git a/src/day06/part2.rs b/days/day06/src/part2.rs similarity index 100% rename from src/day06/part2.rs rename to days/day06/src/part2.rs diff --git a/src/day06/utilities.rs b/days/day06/src/utilities.rs similarity index 83% rename from src/day06/utilities.rs rename to days/day06/src/utilities.rs index 99da72f..15baf44 100644 --- a/src/day06/utilities.rs +++ b/days/day06/src/utilities.rs @@ -1,7 +1,3 @@ -/* pub fn parse(input: &str) -> usize { - unimplemented!() -} */ - pub fn find_dupes_stupid(slice: &[T]) -> bool { for i in 1..slice.len() { if slice[i..].contains(&slice[i - 1]) { diff --git a/days/day07/Cargo.toml b/days/day07/Cargo.toml new file mode 100644 index 0000000..2f988e1 --- /dev/null +++ b/days/day07/Cargo.toml @@ -0,0 +1,11 @@ +[package] +name = "day07" +authors.workspace = true +description.workspace = true +version.workspace = true +edition.workspace = true + +[dependencies] +once_cell.workspace = true +regex.workspace = true +thiserror.workspace = true diff --git a/src/day07/file_tree.rs b/days/day07/src/file_tree.rs similarity index 100% rename from src/day07/file_tree.rs rename to days/day07/src/file_tree.rs diff --git a/src/day07/input.txt b/days/day07/src/input.txt similarity index 100% rename from src/day07/input.txt rename to days/day07/src/input.txt diff --git a/src/day07/solve.rs b/days/day07/src/main.rs similarity index 100% rename from src/day07/solve.rs rename to days/day07/src/main.rs diff --git a/src/day07/parser.rs b/days/day07/src/parser.rs similarity index 100% rename from src/day07/parser.rs rename to days/day07/src/parser.rs diff --git a/src/day07/part1.rs b/days/day07/src/part1.rs similarity index 100% rename from src/day07/part1.rs rename to days/day07/src/part1.rs diff --git a/src/day07/part2.rs b/days/day07/src/part2.rs similarity index 100% rename from src/day07/part2.rs rename to days/day07/src/part2.rs diff --git a/days/day08/Cargo.toml b/days/day08/Cargo.toml new file mode 100644 index 0000000..987173b --- /dev/null +++ b/days/day08/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "day08" +authors.workspace = true +description.workspace = true +version.workspace = true +edition.workspace = true diff --git a/src/day08/input.txt b/days/day08/src/input.txt similarity index 100% rename from src/day08/input.txt rename to days/day08/src/input.txt diff --git a/src/day08/solve.rs b/days/day08/src/main.rs similarity index 94% rename from src/day08/solve.rs rename to days/day08/src/main.rs index 9ce7247..644e313 100644 --- a/src/day08/solve.rs +++ b/days/day08/src/main.rs @@ -1,4 +1,3 @@ -#![allow(dead_code)] mod part1; mod part2; mod utilities; diff --git a/src/day08/part1.rs b/days/day08/src/part1.rs similarity index 96% rename from src/day08/part1.rs rename to days/day08/src/part1.rs index 9637611..1bd15f2 100644 --- a/src/day08/part1.rs +++ b/days/day08/src/part1.rs @@ -1,5 +1,4 @@ -#![allow(unused)] -use crate::{utilities::*, StructuredInput}; +use crate::StructuredInput; pub fn part1(input: &StructuredInput) -> usize { let mut acc: usize = 0; diff --git a/src/day08/part2.rs b/days/day08/src/part2.rs similarity index 97% rename from src/day08/part2.rs rename to days/day08/src/part2.rs index a018a2d..963fe25 100644 --- a/src/day08/part2.rs +++ b/days/day08/src/part2.rs @@ -1,5 +1,4 @@ -#![allow(unused)] -use crate::{utilities::*, StructuredInput}; +use crate::StructuredInput; pub fn part2(input: &StructuredInput) -> usize { let mut max: usize = 0; diff --git a/src/day08/utilities.rs b/days/day08/src/utilities.rs similarity index 97% rename from src/day08/utilities.rs rename to days/day08/src/utilities.rs index cb2416b..acf6673 100644 --- a/src/day08/utilities.rs +++ b/days/day08/src/utilities.rs @@ -1,4 +1,3 @@ -#![allow(unused)] pub fn parse(input: &str) -> Vec> { input .lines() diff --git a/template/Cargo.toml b/template/Cargo.toml new file mode 100644 index 0000000..b79bb50 --- /dev/null +++ b/template/Cargo.toml @@ -0,0 +1,5 @@ +[package] +name = "template" +authors.workspace = true +description.workspace = true +version.workspace = true diff --git a/src/template/input.txt b/template/src/input.txt similarity index 100% rename from src/template/input.txt rename to template/src/input.txt diff --git a/src/template/solve.rs b/template/src/main.rs similarity index 97% rename from src/template/solve.rs rename to template/src/main.rs index 82e1e46..bae4d49 100644 --- a/src/template/solve.rs +++ b/template/src/main.rs @@ -1,3 +1,4 @@ +//TODO: #![allow(dead_code)] mod part1; mod part2; diff --git a/src/template/part1.rs b/template/src/part1.rs similarity index 96% rename from src/template/part1.rs rename to template/src/part1.rs index 8d97308..ac3e084 100644 --- a/src/template/part1.rs +++ b/template/src/part1.rs @@ -1,3 +1,4 @@ +//TODO: #![allow(unused)] use crate::utilities::*; diff --git a/src/template/part2.rs b/template/src/part2.rs similarity index 96% rename from src/template/part2.rs rename to template/src/part2.rs index b141507..6f1cd6c 100644 --- a/src/template/part2.rs +++ b/template/src/part2.rs @@ -1,3 +1,4 @@ +//TODO: #![allow(unused)] use crate::utilities::*; diff --git a/src/template/utilities.rs b/template/src/utilities.rs similarity index 96% rename from src/template/utilities.rs rename to template/src/utilities.rs index 659909f..1cf38f6 100644 --- a/src/template/utilities.rs +++ b/template/src/utilities.rs @@ -1,3 +1,4 @@ +//TODO: #![allow(unused)] pub fn parse(input: &str) -> usize { unimplemented!()