why where these changed no one knows but past me

This commit is contained in:
Dylan Thies
2024-12-02 11:29:22 -05:00
parent 0ceb59d424
commit 0e93372b96
7 changed files with 49 additions and 25 deletions

View File

@@ -12,6 +12,10 @@ nom = { workspace = true }
itertools = {workspace = true }
nom_locate.workspace = true
glam.workspace = true
dhat = { workspace = true }
[dev-dependencies]
rstest.workspace = true
[features]
dhat-heap = []

View File

@@ -3,7 +3,14 @@
use day_21::part1;
use day_21::part2;
#[cfg(feature = "dhat-heap")]
#[global_allocator]
static ALLOC: dhat::Alloc = dhat::Alloc;
fn main() {
#[cfg(feature = "dhat-heap")]
let _profiler = dhat::Profiler::new_heap();
let input = include_str!("./input.txt");
let part1_result = part1(input, 64);
println!("part 1: {part1_result}");