From 974026bf2456372345a082e2ce72ad93cacb38b8 Mon Sep 17 00:00:00 2001 From: Ashhhleyyy Date: Sun, 18 Dec 2022 21:28:47 +0000 Subject: [PATCH] fix: oops --- Cargo.lock | 16 ++++++++++++++++ Cargo.toml | 4 ++++ 2 files changed, 20 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 8abf997..69ac3ed 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -32,6 +32,7 @@ version = "0.1.0" dependencies = [ "aoc_proc", "color-eyre", + "lru-cache", "peg", "petgraph", "regex", @@ -228,6 +229,12 @@ version = "0.2.137" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fc7fcc620a3bff7cdd7a365be3376c97191aeaccc2a603e600951e452615bf89" +[[package]] +name = "linked-hash-map" +version = "0.5.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0717cef1bc8b636c6e1c1bbdefc09e6322da8a9321966e8928ef80d20f7f770f" + [[package]] name = "log" version = "0.4.17" @@ -237,6 +244,15 @@ dependencies = [ "cfg-if", ] +[[package]] +name = "lru-cache" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "31e24f1ad8321ca0e8a1e0ac13f23cb668e6f5466c2c57319f6a5cf1cc8e3b1c" +dependencies = [ + "linked-hash-map", +] + [[package]] name = "memchr" version = "2.5.0" diff --git a/Cargo.toml b/Cargo.toml index 5334162..a3ff1bb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,6 +8,9 @@ edition = "2021" [workspace] members = ["aoc_proc"] +[profile.release] +opt-level = 3 + [dependencies] color-eyre = "0.6.2" aoc_proc = { path = "aoc_proc" } @@ -16,3 +19,4 @@ time = "0.3.17" regex = "1.7.0" petgraph = "0.6.2" peg = "0.8.1" +lru-cache = "0.1.2"