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)
This commit is contained in:
9
src/lib.rs
Normal file
9
src/lib.rs
Normal file
@ -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;
|
||||||
18
src/main.rs
18
src/main.rs
@ -1,14 +1,12 @@
|
|||||||
mod command;
|
use improvise::command;
|
||||||
mod draw;
|
use improvise::draw;
|
||||||
mod format;
|
use improvise::import;
|
||||||
mod formula;
|
use improvise::model;
|
||||||
mod import;
|
use improvise::persistence;
|
||||||
mod model;
|
use improvise::ui;
|
||||||
mod persistence;
|
use improvise::view;
|
||||||
mod ui;
|
|
||||||
mod view;
|
|
||||||
|
|
||||||
use crate::import::csv_parser::csv_path_p;
|
use improvise::import::csv_parser::csv_path_p;
|
||||||
|
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user