Brifing

Topcoat Enables Rust to Render Server-Side Web Applications

Carl Lerche introduces a new Rust framework prioritizing server-side rendering and performance.

1Rust Enters Web Development

Carl Lerche, an AWS principal engineer, unveiled Topcoat at the 2026 P99 conference. While Rust is traditionally used for systems programming, this framework aims to bring its safety and performance benefits to web development. Lerche, known for creating the Tokio runtime, suggests that AI-assisted coding makes adopting Rust more accessible for developers.

2Beyond WebAssembly Limitations

Existing Rust web frameworks like Leptos and Dioxus rely on WebAssembly, which can suffer from significant upfront loading times. Topcoat differentiates itself by compiling Rust code directly into JavaScript. This strategy leverages JavaScript's native ability to interact with the Document Object Model, providing a more efficient bridge for browser-based applications.

3Server-Side Rendering Focus

Topcoat shifts logic execution from the browser to the server, moving away from modern reactive programming models. By rendering components on the server, the framework avoids dumping heavy program logic onto the client at session start. This approach mirrors older web paradigms while utilizing modern technology to maintain high-performance, responsive user experiences.

4Optimizing User Interactions

The framework ensures that user interactions do not trigger full page refreshes. When a user clicks a button, the server returns only the specific HTML snippet required for that component. This method aligns with current trends seen in tools like HTMX and Phoenix LiveView, which prioritize server-side rendering for improved efficiency.

5Streamlined Data Loading

Topcoat utilizes Toasty, an asynchronous object-relational mapper, to allow server-side components to communicate directly with databases. This integration eliminates the need for complex serialization and deserialization processes between client and server. By rendering data immediately, the system reduces overhead and simplifies the overall architecture for database-driven web applications today.

6Enhanced Asset Preloading

By pushing data loading deep into the page rendering process, the server sends the HTML template head to the client immediately. This allows browsers to begin preloading essential assets like CSS and images while the server completes the remaining page render. This technique significantly improves perceived load times for end users.

7Scope and Practical Use

Lerche acknowledges that Topcoat is not designed for massive, complex applications like Figma. Instead, it targets the vast majority of database-driven web applications that constitute 90 percent of the current web. Frontend developer Ken Kohlman notes that the framework's simplicity allows developers with limited Rust experience to get started quite quickly.

8Future of Rust Web

Topcoat represents a shift toward server-side rendering within the Rust ecosystem. While it currently supports only a subset of Rust syntax, it offers a compelling alternative for developers frustrated by existing reactive frameworks. As the ecosystem matures, the balance between full language utility and framework simplicity remains a key area for growth.

Original article: www.theregister.com - Articles — Topcoat Enables Rust to Render Server-Side Web Applications