Rust HTML

Open-source Rust projects categorized as HTML

Top 23 Rust HTML Projects

  • dioxus

    Fullstack GUI library for web, desktop, mobile, and more.

  • Project mention: Dioxus 0.5: Web, Desktop, Mobile Apps in Rust | news.ycombinator.com | 2024-03-28

    We have a web components example here: https://github.com/DioxusLabs/dioxus/blob/fd21c971038840130f...

    Everything should work like normal except: attributes are not typed, custom event listeners must be implemented with web-sys

  • tera

    A template engine for Rust based on Jinja2/Django

  • Project mention: Getting Started with Axum - Rust's Most Popular Framework | dev.to | 2023-12-06

    You can also use HTML templating with crates like askama, tera and maud! This can be combined with the power of lightweight JavaScript libraries like htmx to speed up time to production. You can read more about this on our other article about using HTMX with Rust which you can find here.. We also collaborated with Stefan Baumgartner on an article for serving HTML with Askama!

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • trunk

    Build, bundle & ship your Rust WASM application to the web.

  • Project mention: Migrating a JavaScript frontend to Leptos, a Rust framework | dev.to | 2024-03-26

    Note that Leptos uses Trunk to serve the client side application. Trunk is a zero-config Wasm web application bundler for Rust.

  • askama

    Type-safe, compiled Jinja-like templates for Rust

  • Project mention: Deploying your Rust WASM Game to Web with Shuttle & Axum | dev.to | 2024-02-14

    I have inlined the CSS here, and you can use Rust-based tooling like Lightning CSS to minify and bundle CSS here. You might also want to create a Rust build script to generate the HTML from a template, using the askama crate (works a little like Jinja).

  • sycamore

    A library for creating reactive web apps in Rust and WebAssembly

  • Project mention: Building a Rust app with Perseus | dev.to | 2023-07-05

    Perseus is a fast frontend web development framework for Rust with built-in support for reactivity using Sycamore, server-side rendering, and much more. Sycamore is a frontend library that allows you to build interactive user interfaces with Rust. I’d say that Perseus is to Sycamore as Next.js is to React, so it’ll be helpful for you to have a fair understanding of Sycamore before jumping into using Perseus — although it’s not necessary to follow along in this article.

  • html5ever

    High-performance browser-grade HTML5 parser

  • Project mention: I'm fed up with it, so I'm writing a browser | news.ycombinator.com | 2023-09-22

    Would you consider using some libraries in your project? There are lots of good ones in the Rust ecosystem, and many of them are not part of any existing browsers.

    For example:

    - https://github.com/servo/html5ever (HTML parsing - note: this is used in Servo)

    - https://github.com/parcel-bundler/lightningcss (CSS parsing)

    - https://github.com/DioxusLabs/taffy (web layout)

    - https://github.com/pop-os/cosmic-text (text layout and rendering)

    Obviously you should be free to work on whatever you like, but just as a benchmark on the scope of your project: I spent ~6 months implementing just the CSS Grid algorithm in Taffy last year. An entire browser from literal scratch is probably a 10 year project for one person.

  • maud

    :pencil: Compile-time HTML templates for Rust

  • Project mention: Templ: A language for writing HTML user interfaces in Go | news.ycombinator.com | 2023-12-10

    I would like to mention maud in this context:

    https://github.com/lambda-fairy/maud

    It is refreshingly different from other Rust templating libraries. It uses a proc-macro that compiles your HTML into Rust code. I also happen to use it in conjunction with HTMX and it works very well for me (at least in small projects).

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • sauron

    A versatile web framework and library for building client-side and server-side web applications

  • Project mention: Ultron - a WIP web base editor with themes and syntax highlighting | /r/rust | 2023-07-01

    This project started as a way to test out sauron web framework, but it turns out to be usable and can be embedded in a web applications such as markdown source code renderer.

  • lol-html

    Low output latency streaming HTML parser/rewriter with CSS selector-based API

  • quick-xml

    Rust high performance xml reader and writer

  • Project mention: What are the scenarios where "Rewrite it in Rust" didn't meet your expectations or couldn't be successfully implemented? | /r/rust | 2023-06-09

    Exactly the same experience. In particular I ran into the issue that the only "ergonomic" API (that doesn't require hand-writing a parser) uses serde derive macros, but quick_xml doesn't handle namespaces. After about a day of this I stopped bike-shedding and just used lxml in Python. It works fine (and I have a large XML file, ~2.4Gb).

  • crowbook

    Converts books written in Markdown to HTML, LaTeX/PDF and EPUB

  • sauron-native

    Truly cross platform, truly native. multiple backend GUI for rust

  • mogwai

    The minimalist, obvious, graphical, web application interface

  • ructe

    Rust Compiled Templates with static-file handling

  • Project mention: Full-Stack-Rust: Which approach in Frontend? | /r/rust | 2023-04-28

    Ructe

  • markup.rs

    A blazing fast, type-safe template engine for Rust.

  • horrorshow-rs

    A macro-based html builder for rust

  • rsspls

    Generate RSS feeds from websites

  • Project mention: RSS Please – Generate RSS feeds from web pages | news.ycombinator.com | 2024-03-11
  • render.rs

    🔏 A safe and simple template engine with the ergonomics of JSX

  • Project mention: Hyper – A fast and correct HTTP implementation for Rust | news.ycombinator.com | 2023-05-12

    Any recommendations for rust template engines? I'd like something that can easily render labeled fragments of a template instead of requiring me to split a page into a dozen little files. Kinda like inline {{block}} definitions in Go's html/template. Speed is also nice.

    From template-benchmark-rs [0] I found sailfish [1] (fast, but no fragments(?)). render-rs [2] and syn-rsx [3] (2022) both let you write html in rust macros which is cool (maybe that can substitute for fragments?). Then there's gtmpl-rust [4] which is just Go templates reimplemented in rust.

    [0]: https://github.com/rosetta-rs/template-benchmarks-rs

    [1]: https://github.com/rust-sailfish/sailfish

    [2]: https://github.com/render-rs/render.rs last updated Jul 2020

    [3]: https://github.com/stoically/syn-rsx last updated Nov 2022

    [4]: https://github.com/fiji-flo/gtmpl-rust

  • css-inline

    High-performance library for inlining CSS into HTML 'style' attributes

  • syn-rsx

    syn-powered parser for JSX-like TokenStreams

  • Project mention: Hyper – A fast and correct HTTP implementation for Rust | news.ycombinator.com | 2023-05-12

    Any recommendations for rust template engines? I'd like something that can easily render labeled fragments of a template instead of requiring me to split a page into a dozen little files. Kinda like inline {{block}} definitions in Go's html/template. Speed is also nice.

    From template-benchmark-rs [0] I found sailfish [1] (fast, but no fragments(?)). render-rs [2] and syn-rsx [3] (2022) both let you write html in rust macros which is cool (maybe that can substitute for fragments?). Then there's gtmpl-rust [4] which is just Go templates reimplemented in rust.

    [0]: https://github.com/rosetta-rs/template-benchmarks-rs

    [1]: https://github.com/rust-sailfish/sailfish

    [2]: https://github.com/render-rs/render.rs last updated Jul 2020

    [3]: https://github.com/stoically/syn-rsx last updated Nov 2022

    [4]: https://github.com/fiji-flo/gtmpl-rust

  • html5gum

    A WHATWG-compliant HTML5 tokenizer and tag soup parser

  • nipper

    A Rust crate for manipulating HTML with CSS selectors

  • ryde

    ryde is a single person, single file web development library for rust

  • Project mention: Ryde is a single person, single file web development library for rust | news.ycombinator.com | 2024-02-29
  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2024-03-28.

Rust HTML related posts

Index

What are some of the best open-source HTML projects in Rust? This list will help you:

Project Stars
1 dioxus 18,068
2 tera 3,210
3 trunk 3,161
4 askama 3,081
5 sycamore 2,657
6 html5ever 1,978
7 maud 1,920
8 sauron 1,913
9 lol-html 1,388
10 quick-xml 1,093
11 crowbook 684
12 sauron-native 632
13 mogwai 424
14 ructe 424
15 markup.rs 332
16 horrorshow-rs 315
17 rsspls 255
18 render.rs 223
19 css-inline 209
20 syn-rsx 176
21 html5gum 145
22 nipper 121
23 ryde 106
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com