From f49e14c815e9305670dbf0f471fc51eae8e31947 Mon Sep 17 00:00:00 2001 From: Danik Vitek Date: Sun, 12 Jan 2025 14:48:19 +0200 Subject: [PATCH 1/3] Fix README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 17794964aa..84277f1adf 100644 --- a/README.md +++ b/README.md @@ -167,14 +167,14 @@ Yew is the most-used library for Rust web UI development, but there are several - **Performance:** This has huge performance implications: Leptos is simply much faster at both creating and updating the UI than Yew is. - **Server integration:** Yew was created in an era in which browser-rendered single-page apps (SPAs) were the dominant paradigm. While Leptos supports client-side rendering, it also focuses on integrating with the server side of your application via server functions and multiple modes of serving HTML, including out-of-order streaming. -- ### How is this different from Dioxus? +### How is this different from Dioxus? Like Leptos, Dioxus is a framework for building UIs using web technologies. However, there are significant differences in approach and features. - **VDOM vs. fine-grained:** While Dioxus has a performant virtual DOM (VDOM), it still uses coarse-grained/component-scoped reactivity: changing a stateful value reruns the component function and diffs the old UI against the new one. Leptos components use a different mental model, creating (and returning) actual DOM nodes and setting up a reactive system to update those DOM nodes. - **Web vs. desktop priorities:** Dioxus uses Leptos server functions in its fullstack mode, but does not have the same ``-based support for things like streaming HTML rendering, or share the same focus on holistic web performance. Leptos tends to prioritize holistic web performance (streaming HTML rendering, smaller WASM binary sizes, etc.), whereas Dioxus has an unparalleled experience when building desktop apps, because your application logic runs as a native Rust binary. -- ### How is this different from Sycamore? +### How is this different from Sycamore? Sycamore and Leptos are both heavily influenced by SolidJS. At this point, Leptos has a larger community and ecosystem and is more actively developed. Other differences: From b333f75457fc3ed902face58cf6224b609c31fef Mon Sep 17 00:00:00 2001 From: Danik Vitek Date: Sun, 12 Jan 2025 14:56:12 +0200 Subject: [PATCH 2/3] Add MSRV badge --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 84277f1adf..a874badfa9 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ [![crates.io](https://img.shields.io/crates/v/leptos.svg)](https://crates.io/crates/leptos) [![docs.rs](https://docs.rs/leptos/badge.svg)](https://docs.rs/leptos) +![Crates.io MSRV](https://img.shields.io/crates/msrv/leptos) [![Discord](https://img.shields.io/discord/1031524867910148188?color=%237289DA&label=discord)](https://discord.gg/YdRAhS7eQB) [![Matrix](https://img.shields.io/badge/Matrix-leptos-grey?logo=matrix&labelColor=white&logoColor=black)](https://matrix.to/#/#leptos:matrix.org) From 21fc85daf832649afaa4caa7914f527112f7d6b5 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Sun, 12 Jan 2025 13:10:53 +0000 Subject: [PATCH 3/3] [autofix.ci] apply automated fixes --- leptos_macro/src/view/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leptos_macro/src/view/mod.rs b/leptos_macro/src/view/mod.rs index 02428d5283..0ea12cdd92 100644 --- a/leptos_macro/src/view/mod.rs +++ b/leptos_macro/src/view/mod.rs @@ -1651,7 +1651,7 @@ pub(crate) fn ident_from_tag_name(tag_name: &NodeName) -> Ident { .path .segments .iter() - .last() + .next_back() .map(|segment| segment.ident.clone()) .expect("element needs to have a name"), NodeName::Block(_) => {