Files
advent-of-code-2023/day-12/src/bin/part1.rs
T
Anthony Oteri 98c9b7e4a9 Day 12 - Part 1
Signed-off-by: Anthony Oteri <anthony.oteri@gmail.com>
2023-12-12 12:40:17 -05:00

22 lines
508 B
Rust

use day_12::part1::process;
use miette::Context;
#[cfg(feature = "dhat-heap")]
#[global_allocator]
static ALLOC: dhat::Alloc = dhat::Alloc;
#[tracing::instrument]
fn main() -> miette::Result<()> {
#[cfg(feature = "dhat-heap")]
let _profiler = dhat::Profiler::new_heap();
#[cfg(not(feature = "dhat-heap"))]
tracing_subscriber::fmt::init();
let file = include_str!("../../input.txt");
let result = process(file).context("process part 1")?;
println!("{}", result);
Ok(())
}