This commit is contained in:
Dylan Thies
2023-12-12 00:22:07 -05:00
parent f849def32a
commit d95c567319
3 changed files with 13 additions and 2 deletions

View File

@@ -12,3 +12,7 @@ nom.workspace = true
itertools.workspace = true
num = "0.4.1"
num-traits = "0.2.17"
dhat = { workspace = true }
[features]
dhat-heap = []

View File

@@ -1,9 +1,16 @@
#![warn(clippy::all, clippy::pedantic)]
#[cfg(feature = "dhat-heap")]
#[global_allocator]
static ALLOC: dhat::Alloc = dhat::Alloc;
use day_7::part1;
use day_7::part2;
fn main() {
#[cfg(feature = "dhat-heap")]
let _profiler = dhat::Profiler::new_heap();
let input = include_str!("./input.txt");
let part1_result = part1(input);
println!("part 1: {part1_result}");