Repository navigation
Refactor to Library-First Architecture - #7
Conversation
- Removed all CLI/IO logic (println!, read_input) from library modules. - Converted all calculators in `finance`, `health`, `energy`, `geo`, `water`, `space`, `math`, `specialized`, `utilities`, and `utility_lifestyle` to pure functions returning `Result`. - Deleted legacy `src/auto` and `src/calculators` directories. - Moved auto loan logic to `src/finance/auto_loans.rs`. - Updated `src/lib.rs` to export modules correctly. - Updated all `examples/` to use the new pure API. - Fixed compilation errors and verified with tests.
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
This massive refactoring aligns the
gananayantra-rustingcrate with the "Library-first" philosophy.Key Changes:
run()menus into public, pure functions that take arguments and returnResult<T, String>.println!andstdincalls have been removed fromsrc/.src/auto(migrated logic tofinance).src/calculators(internal utils no longer needed for library).mod.rsfiles to flatten the API (e.g.,use gananayantra::finance::business_loan).examples/to demonstrate the new API usage without CLI interactions.Verification:
cargo checkpasses.cargo testpasses (43 tests).PR created automatically by Jules for task 15744564153439444297 started by @LimaniBhavik