Skip to content

Commit

Permalink
docs: Replace outdated web framework recommendation
Browse files Browse the repository at this point in the history
The trunkrs.dev site currently recommends Seed as one of the "most
popular [Rust web frameworks] today", but is no longer actively
developed or maintained.

This change keeps Yew as a suggested framework, adds Leptos, and also
links to an actively-maintained list of Rust libraries for building web
pages.
  • Loading branch information
silverlyra authored and ctron committed Feb 19, 2024
1 parent 6c00d58 commit 52910c9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion site/content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,15 @@ cargo install --locked wasm-bindgen-cli

## App Setup

Get setup with your favorite `wasm-bindgen` based framework. [Yew](https://github.com/yewstack/yew) & [Seed](https://github.com/seed-rs/seed) are the most popular options today, but there are others. Trunk will work with any `wasm-bindgen` based framework. The easiest way to ensure that your application launches properly is to [setup your app as an executable](https://doc.rust-lang.org/cargo/guide/project-layout.html) with a standard `main` function:
Any `wasm-bindgen`-based framework will work with Trunk. If you're new to [frontend development in Rust][], [Yew][] and [Leptos][] are two popular options.

[frontend development in Rust]: https://github.com/flosse/rust-web-framework-comparison#frontend-frameworks-wasm
[Yew]: https://yew.rs/
[Leptos]: https://leptos.dev/

The easiest way to ensure that your application launches properly is to [setup your app as an executable][cargo-layout] with a standard `main` function:

[cargo-layout]: https://doc.rust-lang.org/cargo/guide/project-layout.html

```rust
fn main() {
Expand Down

0 comments on commit 52910c9

Please sign in to comment.