Leptos is becoming best rust web framwork and How to set up #125
Replies: 6 comments 16 replies
-
Here is what I did:
Leptos setting added to Cargo.toml:
NOTE:
put the following setting into vscode settings.json:
Add rust files watching at tailwind.config.js :
Write TailwindCSS code at "input.css" file at the same path as Cargo.toml and put the output.css into "style/output.css". Then let TailwindCSS excutable work at the terminal.
Then everything should work. |
Beta Was this translation helpful? Give feedback.
-
Thanks for writing this up -- this is awesome! I'm not a Tailwind user myself but we've gotten a bunch of questions about it, so people have definitely saved this for including in docs in the future. Really appreciate it and glad to hear your enthusiasm. |
Beta Was this translation helpful? Give feedback.
-
Does anyone have experience with formatting content within |
Beta Was this translation helpful? Give feedback.
-
Thanks for this conversation. It's very interesting to learn about Leptos and its ability to be used for live previews while coding, excellent syntax highlighting with Tailwind CSS extension, and being able to bundle it with Tauri. Something else I can add to this is that Leptos and Dioxus, two Rust web frameworks, both beat the hell out of React JS (and Rust's Yew framework too): (Source: https://krausest.github.io/js-framework-benchmark/index.html) Despite using WebAssembly, and despite being large and advanced component rendering frameworks, Leptos and Dioxus are close to native vanilla Javascript (no-framework) DOM performance. That's an amazing achievement. I will have to judge Dioxus vs Leptos for myself but I can already say that it appears that Leptos has much more enthusiasm. What are are your thoughts on Dioxus, @GreatGreatGreg, did you (or anyone else here) have a chance to evaluate it? |
Beta Was this translation helpful? Give feedback.
-
I like the framework so far but the only big problem is setting up rust_analyzer.. If I understand correctly there is no way of having intellisense for both csr and ssr at the same time. How do you guys deal with that issue? |
Beta Was this translation helpful? Give feedback.
-
New to the wasm/leptos scene, forgive me if this is a newbie question... I've gone through the docs, but there's no mention on debugging? Is it possible using vscode? Thanks, PS: great work, I love what I'm seeing |
Beta Was this translation helpful? Give feedback.
-
I have written 30+ thousands lines code of rust web app. I have transferred some part of it into Leptos. It works great. And feel Leptos is going to be the best web framework in Rust ecosystem. Here are the thoughts:
Fastest: I used several rust web framework. The result showed that Leptos is the fastest one among all rust web frameworks. And third party js-framework-benchmark shows the same . This is the most important for a product.
HotReload: Cargo-Leptos. When we develop the web app. The Instant UI preview feedback is most inportant. I tried the same feature of several other frameworks. It shows that Leptos is already the fastest one.
TailwindCSS Intellisense: TailwindCSS makes the web app development feel like developing a Flutter app. It makes css develop very easily. It already became the most weekly downloaded CSS. However TailwindCSS Intellisense does not work on some rust web frameworks due to rust micro and own DSL. TailwindCSS Intellisense works on Leptos perfectly.
Web standard. I can copy most of JSX code into Leptos project and do little twist work then it works easily on Leptos. Its hard to fit into some own DSL framework. There is a lot of work for that fitting. Easy fit-in eliminates a lot of work.
Desktop+potential App with tauri. Tauri-Leptos-Example
No Nodejs installation needed on computer. It is good part for those not wanting to use JS.
Vscode Remote-ssh: I use Mac for development while the code sits in Ubuntu. I split vscode into 2 parts at the main window. Left windows is for coding. The right part is simple browser/VS Browser. When I code with Leptos at the left window the preview result shows at the right window instantly. This is great developing experience.
Thank you the Leptos team
Beta Was this translation helpful? Give feedback.
All reactions