Astro 7: Rust Compiler, Rust Markdown Pipeline and Vite 8 for Builds Up to 61% Faster
Astro 7 focuses on build performance, utilizing native tooling and a rewritten compiler in Rust. The new version includes faster Markdown processing and stricter HTML rules. Recent updates introduced advanced routing and incremental builds, while issues around legacy file compatibility and dependency counts were raised in feedback. Astro targets content-driven sites with minimal JavaScript. By…
Astro 7, the latest release of the content-focused web framework, has been released with a focus on build performance, followed by two point releases that further enhance it. The most significant change is the switch from a Go compiler to a native Rust compiler, which has resulted in builds being up to 61 percent faster. The Markdown and MDX processing has also been moved to a new Rust pipeline, and the framework now runs on Vite 8 with its Rollup bundler.
Astro's own benchmarks show builds being 15 to 61 percent faster, with astro.build's time dropping from 62.70 seconds to 24.24 seconds and the 8,431 page Cloudflare developer documentation falling from 386.89 seconds to 261.94 seconds. The new compiler is stricter, with unclosed tags now causing errors instead of being silently repaired, and invalid nesting being passed through as written.
Markdown now runs through Sätteri, a Rust processor built by a core team member, with GitHub Flavored Markdown, smart punctuation, heading IDs, math and wikilinks built in. Advanced routing has been added through a src/fetch.ts entrypoint compatible with Hono, and the framework now supports experimental CDN providers for Netlify, Vercel and Cloudflare.
The release has been met with mixed reactions, with some developers welcoming the improved performance and smaller dependency count, while others have expressed concerns about the stricter HTML compilation and the move away from unified. Migration to the new version is handled by npx @astrojs/upgrade, and the v7 upgrade guide covers the details.
Two point releases have followed, with Astro 7.1 focusing on control rather than speed and Astro 7.2 introducing incremental builds. Astro continues to target content-driven sites with zero client JavaScript by default, and its build tooling is now native code, closing the gap with competitors' Rust-based pipelines.
Written by urgent.news from InfoQ's reporting — not their text. Machine-written — it may contain errors, so check the original before relying on it.