lenso-bootstrap 0.1.1

Composition root for first-party Lenso host modules.
Documentation

Composition root: the single place that knows which modules exist.

Both the API and the worker assemble their module wiring from this crate, so a module is registered here once rather than in scattered per-app edits.

A module's contributions are split by how they are consumed:

  • [modules]: context-bound bindings (runtime functions + event handlers) and runtime config (API + worker), demo-default for context-local callers.
  • [modules_for_config] / [load_modules]: config-aware module loaders that honor profile entry lists and configured remote sources for runtime apps.
  • [module_manifests]: context-free manifest data (no [AppContext]) for read-only / OpenAPI paths, with profile-aware variants for runtime use.
  • [merge_linked_http]: context-free HTTP routes and their OpenAPI docs (API only), assembled without a live [AppContext].
  • [story_display_descriptors]: console display metadata, sourced from the context-free [module_manifests].

When adding a module, register it in the appropriate profile entry lists and expose its config-aware loader contributions from this crate.