Asset pipeline for Rust

1 · Fabien Penso · July 31, 2023, 10:35 a.m.
Rust’s performance is insane but requires a significant amount of manual work, unlike Rails which is highly opinionated but gives you everything. My server-side HTML templates for Constellations used Bootstrap with a CDN but I wanted to move it to a classic asset pipeline. This post explains how I built it. The way it works: All needed assets are built by your asset builder then copied in assets Assets are then copied to public/assets Assets are delivered by Actix An helper for templates allows...