diff options
author | Justin Wernick <j.wernick@eyeo.com> | 2023-11-30 13:15:17 +0200 |
---|---|---|
committer | Justin Wernick <j.wernick@eyeo.com> | 2023-11-30 13:15:17 +0200 |
commit | bbe9e0452016d9667dda36ca98b44842a64d93be (patch) | |
tree | b3646700eeb13b11b63d4111f6b86eb223663990 | |
parent | 3a419be8836ae6e51adc20ba484b6c091ce696ec (diff) |
2023 Setup. Let's go!
-rw-r--r-- | 2023/Cargo.lock | 132 | ||||
-rw-r--r-- | 2023/Cargo.toml | 13 | ||||
-rw-r--r-- | 2023/inputs/day_1.txt | 1 | ||||
-rw-r--r-- | 2023/readme.org | 5 | ||||
-rw-r--r-- | 2023/src/bin/day_1.rs | 8 | ||||
-rw-r--r-- | 2023/src/lib.rs | 1 |
6 files changed, 160 insertions, 0 deletions
diff --git a/2023/Cargo.lock b/2023/Cargo.lock new file mode 100644 index 0000000..08a3683 --- /dev/null +++ b/2023/Cargo.lock @@ -0,0 +1,132 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "aoc2023" +version = "0.1.0" +dependencies = [ + "derive_more", + "nom", + "thiserror", +] + +[[package]] +name = "convert_case" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec182b0ca2f35d8fc196cf3404988fd8b8c739a4d270ff118a398feb0cbec1ca" +dependencies = [ + "unicode-segmentation", +] + +[[package]] +name = "derive_more" +version = "1.0.0-beta.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7abbfc297053be59290e3152f8cbcd52c8642e0728b69ee187d991d4c1af08d" +dependencies = [ + "derive_more-impl", +] + +[[package]] +name = "derive_more-impl" +version = "1.0.0-beta.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bba3e9872d7c58ce7ef0fcf1844fcc3e23ef2a58377b50df35dd98e42a5726e" +dependencies = [ + "convert_case", + "proc-macro2", + "quote", + "syn", + "unicode-xid", +] + +[[package]] +name = "memchr" +version = "2.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f665ee40bc4a3c5590afb1e9677db74a508659dfd71e126420da8274909a0167" + +[[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", +] + +[[package]] +name = "proc-macro2" +version = "1.0.70" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39278fbbf5fb4f646ce651690877f89d1c5811a3d4acb27700c1cb3cdb78fd3b" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "quote" +version = "1.0.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "syn" +version = "2.0.39" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23e78b90f2fcf45d3e842032ce32e3f2d1545ba6636271dcbf24fa306d87be7a" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "thiserror" +version = "1.0.50" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9a7210f5c9a7156bb50aa36aed4c95afb51df0df00713949448cf9e97d382d2" +dependencies = [ + "thiserror-impl", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.50" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "266b2e40bc00e5a6c09c3584011e08b06f123c00362c92b975ba9843aaaa14b8" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "unicode-ident" +version = "1.0.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" + +[[package]] +name = "unicode-segmentation" +version = "1.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1dd624098567895118886609431a7c3b8f516e41d30e0643f03d94592a147e36" + +[[package]] +name = "unicode-xid" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f962df74c8c05a667b5ee8bcf162993134c104e96440b663c8daa176dc772d8c" diff --git a/2023/Cargo.toml b/2023/Cargo.toml new file mode 100644 index 0000000..d7b5bda --- /dev/null +++ b/2023/Cargo.toml @@ -0,0 +1,13 @@ +[package] +name = "aoc2023" +version = "0.1.0" +authors = ["Justin Wernick <justin@worthe-it.co.za>"] +edition = "2021" + +[dependencies] +derive_more = { version = "1.0.0-beta.6", features = ["full"] } +nom = "7.1.3" +thiserror = "1.0.50" + +[profile.release] +# debug = true diff --git a/2023/inputs/day_1.txt b/2023/inputs/day_1.txt new file mode 100644 index 0000000..9885353 --- /dev/null +++ b/2023/inputs/day_1.txt @@ -0,0 +1 @@ +placeholder for the real day 1 input diff --git a/2023/readme.org b/2023/readme.org new file mode 100644 index 0000000..9d68a8d --- /dev/null +++ b/2023/readme.org @@ -0,0 +1,5 @@ +* Advent of Code 2023 + +Just going to have some fun and solve the cool puzzles this year. No special +requirements. Probably am going to keep using NOM for parsing inputs because +that worked well in previous years. diff --git a/2023/src/bin/day_1.rs b/2023/src/bin/day_1.rs new file mode 100644 index 0000000..227aada --- /dev/null +++ b/2023/src/bin/day_1.rs @@ -0,0 +1,8 @@ +use std::fs; + +fn main() -> Result<(), Box<dyn std::error::Error>> { + let input = fs::read_to_string("inputs/day_1.txt")?; + dbg!(input); + + Ok(()) +} diff --git a/2023/src/lib.rs b/2023/src/lib.rs new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/2023/src/lib.rs @@ -0,0 +1 @@ + |