Skip to content

Reading order ​

A guide to ferrovue: from a .vue file to a page a browser hydrates.

Read them in order the first time:

  1. [quick_start]: install both halves, configure, generate, render.
  2. [generated_code]: what the compiler writes, module by module, and the shape of a component's API: Props, render, html, island.
  3. [props]: how each TypeScript prop type becomes a Rust type, and how to build props; dictionaries, with Record.
  4. [script_logic]: statements in a computed, a list method's callback and the functions a template calls, as the server evaluates them.
  5. [slots]: slot content from Rust, named and scoped slots, fallbacks.
  6. [scoped_styles]: <style scoped> ids, matching @vitejs/plugin-vue, and :slotted(); v-bind() in <style>; CSS modules.
  7. [routing]: <RouterLink>, <RouterView> and useRoute(), with Router and Route; routes from a folder of pages.
  8. [i18n]: vue-i18n's $t, with I18n.
  9. [teleports]: <Teleport>, with Teleports.
  10. [pinia]: Pinia state on the server, and handing it to the client.
  11. [provide_inject]: provide and inject, resolved through the component tree.
  12. [loaders]: the data a component awaits in <script setup>, which the Rust app loads.
  13. [head]: the page head from useHead and useSeoMeta, with Head.
  14. [islands_and_hydration]: what the browser does with the page, and when each island hydrates.
  15. [streaming]: holes, for sending a page in the order its parts are ready.
  16. [web_frameworks]: responding with a component or a streamed page from axum or actix-web.
  17. [numbers]: JavaScript's number semantics in Rust.
  18. [strings]: JavaScript's strings in Rust: UTF-16 indices, halves of pairs, ordering, conversions to and from numbers.
  19. [dates_and_prices]: dates from ISO strings and numbers, read in UTC, and prices and formatted dates written in Rust or translated, since Intl differs between browsers.
  20. [escaping]: what is escaped, where, and the one way to write raw HTML.
  21. [security]: the threat model: every place data from readers is written, the guarantee there, and what is inherited from Vue.
  22. [testing]: holding your own components to Vue, with fixtures and two calls.
  23. [errors_and_limits]: what the compiler refuses, what a render refuses as it runs, and what can still go wrong at run time.
  24. [error_codes]: every error code the compiler raises.
  25. [dioxus]: islands in a page that Dioxus renders, with the dioxus feature.

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.