MoonZoon
trunk
Our great sponsors
MoonZoon | trunk | |
---|---|---|
16 | 54 | |
1,725 | 3,177 | |
3.0% | 3.5% | |
9.2 | 9.7 | |
22 days ago | 3 days ago | |
Rust | Rust | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
MoonZoon
-
A Proposal for an asynchronous Rust GUI framework
They are both async and made for GUI -- in case of rust-signals WebGUI, provided by dominator and MoonZoon.
-
Planning to make a video on cool Rust apps focused on the end user. Make recommendations!
Fullstack Framework: MoonZoon, Leptos
- Rust front-end framework
-
Pick a Front End Web Framework
Dominator is more of a low-level framework for manipulating the DOM. There's also MoonZoon (https://github.com/MoonZoon/MoonZoon) which uses dominator but provides a more complete experience.
-
Dioxus vs Egui vs Iced vs Tauri+Yew?
Alternative 2)thin client in browser and server in rust. If you really want to limit it to web client and web server, possibly try a newer approach with moonzoon. https://github.com/MoonZoon/MoonZoon/tree/main/examples/todomvc
-
They interviewed the founder of a full-stack Rust framework called "MoonZoon" in this newsletter. Has anyone here used MoonZoon before?
I don't really know Rust so clearly I'm not the target audience, but this thing where you define all the styles using chains of methods seems kinda clumsy to me. And if it's all turning into CSS in the end you presumably still need to understand CSS concepts in order to make the layout you want using this syntax. So I'm not sure this is really saving you from learning HTML and CSS. That said it does appear to be compiling your Rust to web assembly (like Blazor does) which is pretty cool.
- 18 factors powering the Rust revolution, Part 2 of 3
-
Serving a frontend with a Rust Web framework
I've come across MoonZoon (https://github.com/MoonZoon/MoonZoon) which seems like an interesting full stack framework, but I'm wondering about a solution that would allow choosing both frontend and backend frameworks.
-
Front-end Rust framework performance prognosis
There’s also https://github.com/MoonZoon/MoonZoon which is built on dominator. It’s in fairly early stage development but offers a higher level interface than dominator.
- GitHub - seed-rs/seed: A Rust framework for creating web apps
trunk
-
Surprisingly Powerful – Serverless WASM with Rust Article 1
Trunk is a WASM web application bundler for Rust. Trunk uses a simple, optional-config pattern for building & bundling WASM, JS snippets & other assets (images, css, scss) via a source HTML file. - Trunk
-
Migrating a JavaScript frontend to Leptos, a Rust framework
Note that Leptos uses Trunk to serve the client side application. Trunk is a zero-config Wasm web application bundler for Rust.
-
Why Is the Front End Stack So Complicated?
I've been using Rust and WASM for my latest front-end project, and I think this setup is a viable alternative to commonly used JS frameworks for those willing to put in some effort to ramp up on new technology. Addressing the concerns from the article:
"No universal import system" - Rust has it's own module system and Cargo is used for managing dependencies, no need to worry about different module systems.
"Layers of minification, uglification, and transpilation." Just compile Rust to WASM file for the browser, same as using any other compile target.
"Wildly different environments." Something that you'll still need to deal with. Some runtime dependencies are system-specific (code running on the browser usually needs access to Web APIs, and JavaScript, code running on the server can't access WebAPIs but can access the system clock and filesystem. Sometimes separate libraries or separate runtime configs are needed (e.g. configurable time source)
"Overemphasis on file structure." Not a problem for imports, but you may still have file structure dependencies things like CSS, image resources etc.
"Configuration hell." Pretty much non-existent once you have your Rust compiler setup locally.
"Development parity." Just use trunk: https://trunkrs.dev/, to watch, build and serve, config is minimal.
-
PSA: Rust web frontend with Tailwind is easy!
Trunk, the Rust-equivalent of Webpack & Vite, comes with tailwind built-in. You heard that right! You don't even need to install the tailwind CLI via npm or something like that. No more package.json! <3
-
Awesome presentation of Dioxus - cross-platform GUI framework at RustNL
Can you not use dioxus with "trunk" (https://trunkrs.dev/) ?
-
A Chess Engine is written in Rust that runs natively and on the web!
Thanks a lot! As I said in an earlier comment, building this allowed me to explore a lot of features of rust like Traits, Dynamic Dispatch, Pattern Matching, Const evaluation, Static variables, etc. and that on top of that trying to figure out how to conveniently port it to WASM was also a nice learning experience. I am currently using trunk as a bundler which ties in neatly with a GitHub action but before that, I tried cargo-run-wasm, which felt a little hacky. So overall a whole lot of learning.
-
Speak English to me, The secret World of Programmers
Here here. I don't think programmers - as a group - get to complain about people not learning programming tools while simultaneously making them so unapproachable (especially Linux things).
It's not just the overuse of acronyms. There's also:
* Religious devotion to the CLI despite it having terrible discoverability.
* Really bad naming. Git is probably the worst offender at this, but the whole of Unix is a naming mess. WTF is `usr`? Is that where user files go?
* Generally over-complicated tooling. A good example of this is Node/NPM. So complicated to set up! Contrast it with https://trunkrs.dev/
* Deification of distro packages. No I do not want to spend half of my development time packaging my app for 10 different distros. I guess I'll go with curl | bash then.
* Distain for binary app distribution. I'm looking at you glibc.
-
Helper/cheat tool for the board game Cryptid - my first website built with Rust/Wasm
I used Notan for drawing the game board in combination with the excellent egui for adding UI elements. It was surprisingly easy to bring it to web with Trunk.
-
MailCrab
Hi, the author of MailCrab here :-) Yew is nice, especially if you enjoy writing Rust. However, it definitely takes more time and dedication than writing a frontend in React, Vue etc. Yew and the surrounding ecosystem keeps improving, and it is way more usable than when I first tried it. The tooling I used (Trunk https://trunkrs.dev/) is very minimal with respect to the number of features compared to many of the popular web-bundlers (Webpack etc.) but it works well for most simple use-cases.
-
Is rust + yew a good starting point for learning web dev?
Yew is way way nicer in that regard because it uses Trunk which is very excellent and you don't have to deal with any of that really. Just trunk serve and away you go. Plus you get the advantage of not having to deal with Javascript. Typescript is nice, but it's no Rust.
What are some alternatives?
perseus - A state-driven web development framework for Rust with full support for server-side rendering and static generation.
wasm-pack - 📦✨ your favorite rust -> wasm workflow tool!
yew - Rust / Wasm framework for creating reliable and efficient web applications
tailwind-yew-builder - Build tailwind css for yew style applications, using docker-compose, so you don't need to have npm installed
sycamore - A library for creating reactive web apps in Rust and WebAssembly
wasm-bindgen - Facilitating high-level interactions between Wasm modules and JavaScript
rust-dominator - Zero-cost ultra-high-performance declarative DOM library using FRP signals for Rust!
tauri - Build smaller, faster, and more secure desktop applications with a web frontend.
wasmtime - A fast and secure runtime for WebAssembly
Seed - A Rust framework for creating web apps
awesome-vite - ⚡️ A curated list of awesome things related to Vite.js