What is DX SaaS Template?
DX SaaS Template is a production-ready fullstack SaaS starter built entirely in Rust. It uses Dioxus 0.7 for both the server and the WASM client, compiled from a single codebase via Cargo feature flags.
Everything compiles to two binaries: a server (Axum + SSR) and a WASM client — from the same source tree.
Stack Overview
Dioxus 0.7
Fullstack Rust framework with SSR, hydration, server functions, and a React-like component model.
PostgreSQL
Relational database accessed with sqlx. Schema lives in migrations/, embedded in the binary and applied on boot.
oxidt-auth
Email one-time codes and passkeys against your own database, no identity provider needed. Switch to FerrisKey OIDC when apps must share one login.
TailwindCSS + DaisyUI
Utility-first CSS with DaisyUI 5 component library. Dark theme by default.
Architecture
The project uses feature-gated compilation to split code between server and client:
#[cfg(feature = "server")]— Server-only code (PostgreSQL, Axum, sessions)#[cfg(feature = "web")]— Client-only code (WASM bindings, browser APIs)
Server functions use the #[post("/api/...")] macro and can accept a session: auth::UserSession parameter for authentication.
Project Structure
Optional features
--features sentryenables Sentry error tracking and tracing breadcrumbs (requiresSENTRY_DSN).