v0.1.0 — 100% Test Compatibility
rsvelte v0.1.0 — 100% Test Compatibility
Rust implementation of the Svelte compiler, fully compatible with Svelte 5.51.3.
Test Results
All test suites pass at 100%:
| Suite | Pass/Total |
|---|---|
| Parser Modern | 22/22 |
| Parser Legacy | 82/82 |
| Compiler Errors | 144/144 |
| SSR | 82/82 |
| Compiler Snapshot | 20/20 |
| CSS | 179/179 |
| Runtime Legacy | 1201/1201 |
| Runtime Runes | 865/865 |
| Hydration | 77/77 |
| Runtime Browser | 31/31 |
| Validator | 324/324 |
| 40/40 |
Performance (3,654 Svelte test files, Docker/Linux)
| Task | JavaScript | Rust (single) | Rust (multi) | Speedup (single) | Speedup (multi) |
|---|---|---|---|---|---|
| Compile (Client) | 1026ms | 287ms | 74ms | 3.6x | 13.9x |
| Compile (SSR) | 831ms | 347ms | 90ms | 2.4x | 9.3x |
| Parse | 194ms | 6.7ms | 1.9ms | 29.0x | 100.9x |
Highlights
- Drop-in replacement for the official Svelte compiler via N-API bindings
- Full Svelte 5.51.3 compatibility (runes, async, snippets, etc.)
- Parse performance: 29x single-threaded, 101x multi-threaded vs JavaScript
- WASM build support for browser usage