Expand description
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 (noAppContext) for read-only /OpenAPIpaths, with profile-aware variants for runtime use.merge_linked_http: context-free HTTP routes and their OpenAPI docs (API only), assembled without a liveAppContext.story_display_descriptors: console display metadata, sourced from the context-freemodule_manifests.
When adding a module, register it in the appropriate profile entry lists and expose its config-aware loader contributions from this crate.
Structs§
- Host
Composition - Host
Linked Module - Host
Wiring - Linked
Http Route Owner - Public HTTP path ownership for linked modules.
- Remote
Module Service Supervisor
Enums§
Functions§
- admin_
modules - Aggregate admin-capable modules: those declaring an admin surface and
providing either an
AdminDataSourceor anAdminActionSource. Modules without an admin behavior source are filtered out — “optional capability” semantics. - auth_
actor_ resolver_ for_ context - auth_
actor_ resolver_ for_ context_ with_ composition - auth_
linked_ module - auth_
oidc_ linked_ module - auth_
password_ linked_ module - enqueue_
lifecycle_ activation_ jobs - Validate and enqueue every startup activation job declared by loaded modules.
- event_
handlers - Build an
EventHandlerRegistryfrom every module’s binding. - event_
handlers_ with_ runtime_ actions - Build an
EventHandlerRegistrywith host runtime actions enabled for remote event-handler result actions. - function_
registry - Build a
FunctionRegistryfrom every module’s binding. - host_
wiring_ for_ context - host_
wiring_ for_ context_ with_ composition - install_
default_ story_ display_ catalog - install_
default_ story_ display_ catalog_ with_ composition - install_
story_ display_ catalog - linked_
http_ modules - Context-free linked modules that contribute Axum/OpenAPI HTTP routers.
- linked_
http_ modules_ for_ config - linked_
http_ modules_ for_ context - linked_
http_ modules_ for_ context_ with_ composition - linked_
http_ modules_ for_ profile - linked_
http_ route_ owners - linked_
http_ route_ owners_ for_ profile - linked_
runtime_ function_ declaration_ sources - Runtime function declaration sources for context-free linked modules.
- linked_
runtime_ function_ declaration_ sources_ for_ config - linked_
runtime_ function_ declaration_ sources_ for_ context - linked_
runtime_ function_ declaration_ sources_ for_ context_ with_ composition - linked_
runtime_ function_ declaration_ sources_ for_ profile - load_
admin_ module_ metadata - Load registry metadata for every configured module, including modules with no admin surface and custom surfaces not consumable by schema-admin list/detail.
- load_
admin_ module_ metadata_ with_ composition - load_
admin_ modules - Load schema-admin capable modules, including configured remotes.
- load_
admin_ modules_ with_ composition - load_
modules - Load every configured module, including out-of-process remote modules.
- load_
modules_ with_ composition - load_
remote_ http_ proxy_ registry - merge_
linked_ http - Merge every linked module’s HTTP routes (and their
OpenAPIdocs) ontobase. - merge_
linked_ http_ for_ config - merge_
linked_ http_ for_ context - merge_
linked_ http_ for_ context_ with_ composition - merge_
linked_ http_ for_ profile - migrations_
for_ config - migrations_
for_ config_ with_ composition - migrations_
for_ profile - module_
manifests - Context-free module manifests for read-only / OpenAPI paths that have no
AppContext. Kept in sync withmodulesby listing the same modules. - module_
manifests_ for_ profile - modules
- Demo-default linked modules helper (context-bound: builds bindings).
- modules_
for_ config - modules_
for_ config_ with_ composition - modules_
for_ profile - runtime_
config_ descriptors - Every module’s setting descriptors.
- runtime_
config_ descriptors_ with_ composition - runtime_
config_ group_ descriptors - Every config presentation group known to the current composition.
- runtime_
config_ group_ descriptors_ with_ composition - runtime_
function_ declaration_ sources_ from_ metadata - Runtime function declaration sources from loaded module metadata, including configured remote modules.
- scheduled_
functions - Build host-owned runtime schedules declared by loaded modules.
- start_
installed_ remote_ module_ services - start_
installed_ remote_ module_ services_ from_ path - story_
display_ descriptors - Story-display descriptors for every module. Sourced from context-free
manifests so the
OpenAPIpath stays pure (noAppContext). - story_
display_ descriptors_ for_ config - story_
display_ descriptors_ for_ context - story_
display_ descriptors_ for_ profile