Reading order
A guide to ferrovue: from a .vue file to a page a browser hydrates.
Read them in order the first time:
- [
quick_start]: install both halves, configure, generate, render. - [
generated_code]: what the compiler writes, module by module, and the shape of a component's API:Props,render,html,island. - [
props]: how each TypeScript prop type becomes a Rust type, and how to build props; dictionaries, withRecord. - [
script_logic]: statements in acomputed, a list method's callback and the functions a template calls, as the server evaluates them. - [
slots]: slot content from Rust, named and scoped slots, fallbacks. - [
scoped_styles]:<style scoped>ids, matching@vitejs/plugin-vue, and:slotted();v-bind()in<style>; CSS modules. - [
routing]:<RouterLink>,<RouterView>anduseRoute(), withRouterandRoute; routes from a folder of pages. - [
i18n]: vue-i18n's$t, withI18n. - [
teleports]:<Teleport>, withTeleports. - [
pinia]: Pinia state on the server, and handing it to the client. - [
provide_inject]:provideandinject, resolved through the component tree. - [
loaders]: the data a component awaits in<script setup>, which the Rust app loads. - [
head]: the page head fromuseHeadanduseSeoMeta, withHead. - [
islands_and_hydration]: what the browser does with the page, and when each island hydrates. - [
streaming]: holes, for sending a page in the order its parts are ready. - [
web_frameworks]: responding with a component or a streamed page from axum or actix-web. - [
numbers]: JavaScript's number semantics in Rust. - [
strings]: JavaScript's strings in Rust: UTF-16 indices, halves of pairs, ordering, conversions to and from numbers. - [
dates_and_prices]: dates from ISO strings and numbers, read in UTC, and prices and formatted dates written in Rust or translated, sinceIntldiffers between browsers. - [
escaping]: what is escaped, where, and the one way to write raw HTML. - [
security]: the threat model: every place data from readers is written, the guarantee there, and what is inherited from Vue. - [
testing]: holding your own components to Vue, with fixtures and two calls. - [
errors_and_limits]: what the compiler refuses, what a render refuses as it runs, and what can still go wrong at run time. - [
error_codes]: every error code the compiler raises. - [
dioxus]: islands in a page that Dioxus renders, with thedioxusfeature.
Moving an existing app, and what is supported:
- [
porting]: moving a Vue 3 server-rendered app to ferrovue, from configuration to checking the output against Vue. - [
support]: the versions of Vue, Node and Rust supported, which releases receive fixes, deprecations, and where to report a problem.
Upgrading a project from an earlier release, newest first:
- [
upgrading_to_0_16]: from 0.15 to 0.16. - [
upgrading_to_0_14]: from 0.13 to 0.14. - [
upgrading_to_0_13]: from 0.12 to 0.13. - [
upgrading_to_0_12]: from 0.11 to 0.12. - [
upgrading_to_0_11]: from 0.10 to 0.11. - [
upgrading_to_0_10]: from 0.9 to 0.10. - [
upgrading_to_0_9]: from 0.8 to 0.9. - [
upgrading_to_0_8]: from 0.7 to 0.8.