From 4d9051aecece7d96a6f4a3ba7f1867c012dd3922 Mon Sep 17 00:00:00 2001 From: ddidderr Date: Sun, 10 Nov 2024 18:07:59 +0100 Subject: [PATCH] [docs] add a lessons learned document --- LESSONS_LEARNED.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 LESSONS_LEARNED.md diff --git a/LESSONS_LEARNED.md b/LESSONS_LEARNED.md new file mode 100644 index 0000000..dce32a3 --- /dev/null +++ b/LESSONS_LEARNED.md @@ -0,0 +1,15 @@ +# Wrong decisions +- **tauri-leptos** adds unnecessary complexity to the project. + Tauri is built to transfer backend Rust stuff to the frontend JavaScript world. + But with leptos, the frontend becomes Rust so you have to transfer everything again back into the Rust world. + +# Good decisions +- **Tauri** is strong 💪 + - Easy project setup with `cargo install create-tauri-app --locked` and `cargo create-tauri-app` + - Easy testing with `cargo tauri dev` + - Easy bundling (with installers and everything) with `cargo tauri build` + - Final binary size of my tauri-leptos project is 13MB (which seems small to me if you think that a whole WASM / Web stack is in there) + +# Open questions +- **logging**: I don't understand the relationship (or lack thereof) between `tracing` and `log`. + I had to refactor logging in the client away from `tracing`.