wealthfolio
wealthfolio copied to clipboard
[Refactor] Add src-core as the independent lib to any stack
Summary
- Add
src-core
directory to contain Rust only code to handle all business logic -
src-tauri
containcommands
only and setup to build desktop apps - Directory structure
wealthfolio/
├── src # React for frontend
├── src-tauri # Tauri to build desktop apps
├── src-core # Rust for backend
=> src-core
is independent now, and can be reused in any tool (not just Tauri)
File changes
- Most of the files are just moved from src-tauri to src-core
- All dependencies (except tauri ones) are moved from src-tauri/Cargo.toml to src-core/Cargo.toml
- Refactor all commands in src-tauri into a single place