← Writing

Building a fast personal site with Rust and Dioxus 0.7

2026-06-20#rust#dioxus#wasm#web

Why Rust for the web?

After years of TypeScript and Go I wanted a single language that compiled to native speed on the server and WASM in the browser from the same codebase. Dioxus 0.7 makes that possible.

The stack

  • Dioxus 0.7 fullstack with server-side rendering and hydration
  • Axum under the hood for the HTTP layer
  • SQLx talking to Neon Postgres
  • Tailwind CSS via the dx CLI

What surprised me

The biggest surprise was how little code the server functions require. A #[get] or #[post] macro turns a plain async function into both a REST endpoint on the server and a type-safe HTTP call on the client — no OpenAPI, no codegen.

The rough edges

SSR hydration mismatches are the main footgun. Any state that differs between server and client (like localStorage reads) must be deferred into a use_effect. Once you learn that rule the rest falls into place.

Verdict

I'd reach for this stack again for any content-heavy site where SEO and initial load matter. The compile times are real, but the confidence from the type system pays for itself.