Compare commits
2 Commits
9f8c6d3417
...
4d9051aece
Author | SHA1 | Date | |
---|---|---|---|
4d9051aece | |||
5ef77addbf |
15
LESSONS_LEARNED.md
Normal file
15
LESSONS_LEARNED.md
Normal file
@ -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`.
|
@ -77,7 +77,7 @@ pub fn App() -> impl IntoView {
|
|||||||
|
|
||||||
view! {
|
view! {
|
||||||
<main class="container">
|
<main class="container">
|
||||||
<h1 class="align-center">{"SotLAN Launcher"}</h1>
|
<h1 class="align-center">{"SoftLAN Launcher"}</h1>
|
||||||
|
|
||||||
<div class="main-header">
|
<div class="main-header">
|
||||||
{"HEADER"}
|
{"HEADER"}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user