1
0

Move code into library crate for testing

This commit is contained in:
Stefan Müller
2025-12-08 18:20:41 +01:00
parent fd488ac8e4
commit aac486d69f
4 changed files with 8 additions and 3 deletions
+2
View File
@@ -0,0 +1,2 @@
mod common;
pub mod solvers;
+1 -2
View File
@@ -1,5 +1,4 @@
mod common;
mod solvers;
use advent_of_code_2025::solvers;
fn main() {
println!("### Advent of Code 2025 ###\n");
+2 -1
View File
@@ -25,7 +25,8 @@ pub trait Solver {
// The "../../data" and "../../../data" paths are useful for running the binary from
// "target/release/" directory with "data/" directory in package root or parent directory.
const DATA_PATHS: &'static [&'static str] = &["./data", "../data", "../../data", "../../../data"];
pub const DATA_PATHS: &'static [&'static str] =
&["./data", "../data", "../../data", "../../../data"];
pub fn run<S: Solver>(solver: S) {
println!(