Skip to main content

Module modules

Module modules 

Source
Expand description

Module crates from the app’s point of view: discovery via cargo metadata, their shipped schema snapshots for fse migrate, and fse sync — copying their frontend/ sources into .fse/modules/ where the app’s Astro build layers them in.

Structs§

ModuleInfo

Functions§

discover
Locates every configured module crate through cargo metadata. Requires each to be an actual dependency of the app.
load_schema
A module’s shipped schema snapshot — the tables it contributes.
sync
fse sync: refreshes .fse/modules/<name>/frontend/ from every configured module’s frontend/ sources. The whole .fse/modules/ directory is regenerated (it’s build output — removed modules disappear).