wealthfolio
wealthfolio copied to clipboard
Init src-rust-lib
Context
- This is one step in the plan to support this app running on web browser, and mobile
- Goal
- in Desktop mode,
src/commands
will calls to@tauri-apps
- in Web browser mode,
src/commands
will calls to some backend- eventually, the dir structure can be like this
- in Desktop mode,
wealthfolio/
├── src/
├── src-tauri/
├── src-rust-api/ # some REST api backend
├── src-rust-lib/ # shared rust code using `src-tauri` and `src-rust-api`
Summary
- This
src-rust-lib
contains shared code using in different project likesrc-tauri
(desktop) orsrc-rust-api
(REST api) - Move
src-tauri/db.rs
tosrc-rust-api/db.rs
- This PR only shows a sample of reusing
db.rs
insrc-tauri
fromsrc-rust-api
, the full PR is https://github.com/afadil/wealthfolio/pull/54 that move all core logic tosrc-rust-libs