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: Secure Pattern for Deploying WASM on S3 | dev.to | 2024-05-11

    Going back to building the WASM package, I used a tool called Trunk to build and bundle the Rust code. When I run the command trunk build I'm presented with the following images. The first is what the build looks like from the console and the second is the contents of the dist directory that is created and populated.

  • 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).

  • SaaSHub

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

    SaaSHub 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

  • ructe

    Rust Compiled Templates with static-file handling

  • mogwai

    The minimalist, obvious, graphical, web application interface

  • CommonMarker

    Ruby wrapper for the comrak (CommonMark parser) Rust crate

  • 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

  • css-inline

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

  • syn-rsx

    syn-powered parser for JSX-like TokenStreams

  • html5gum

    A WHATWG-compliant HTML5 tokenizer and tag soup parser

  • nipper

    A Rust crate for manipulating HTML with CSS selectors

  • 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).

Rust HTML related posts

  • RSS Please – Generate RSS feeds from web pages

    1 project | news.ycombinator.com | 11 Mar 2024
  • CSS for Printing to Paper

    15 projects | news.ycombinator.com | 3 Mar 2024
  • Deploying your Rust WASM Game to Web with Shuttle & Axum

    4 projects | dev.to | 14 Feb 2024
  • Getting Started with Actix Web - The Battle-tested Rust Framework

    2 projects | dev.to | 15 Dec 2023
  • Getting Started with Axum - Rust's Most Popular Framework

    5 projects | dev.to | 6 Dec 2023
  • RustGPT: ChatGPT UI Built with Rust, Htmx, SQLite

    4 projects | news.ycombinator.com | 19 Nov 2023
  • Announcing Stilts v0.1 A new template engine like Askama

    2 projects | /r/rust | 4 Jul 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 19 May 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

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

Project Stars
1 dioxus 18,613
2 tera 3,241
3 trunk 3,205
4 askama 3,128
5 sycamore 2,684
6 html5ever 1,998
7 maud 1,945
8 sauron 1,920
9 lol-html 1,407
10 quick-xml 1,101
11 crowbook 690
12 sauron-native 632
13 ructe 425
14 mogwai 423
15 CommonMarker 409
16 markup.rs 334
17 horrorshow-rs 315
18 rsspls 261
19 render.rs 225
20 css-inline 216
21 syn-rsx 177
22 html5gum 146
23 nipper 121

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com