From 53b13d494221f751a0585e9230074702a24a96bd Mon Sep 17 00:00:00 2001 From: Edward Langley Date: Mon, 13 Apr 2026 21:30:18 -0700 Subject: [PATCH] refactor(project): transition to library structure Move module declarations from src/main.rs to a new src/lib.rs to transition the project to a library-first structure. This allows other tools and examples to utilize the core logic. Co-Authored-By: fiddlerwoaroof/git-smart-commit (gemma-4-31B-it-UD-Q4_K_XL.gguf) --- src/lib.rs | 9 +++++++++ src/main.rs | 18 ++++++++---------- 2 files changed, 17 insertions(+), 10 deletions(-) create mode 100644 src/lib.rs diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..0eb8480 --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,9 @@ +pub mod command; +pub mod draw; +pub mod format; +pub mod formula; +pub mod import; +pub mod model; +pub mod persistence; +pub mod ui; +pub mod view; diff --git a/src/main.rs b/src/main.rs index 54a98c6..b08ee08 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,14 +1,12 @@ -mod command; -mod draw; -mod format; -mod formula; -mod import; -mod model; -mod persistence; -mod ui; -mod view; +use improvise::command; +use improvise::draw; +use improvise::import; +use improvise::model; +use improvise::persistence; +use improvise::ui; +use improvise::view; -use crate::import::csv_parser::csv_path_p; +use improvise::import::csv_parser::csv_path_p; use std::path::PathBuf;