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: config-aware Linked Module loader that honors the selected composition profile.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
System Plane Config - Host
System Plane Runtime - Host
Wiring - Linked
Http Route Owner - Public HTTP path ownership for linked modules.
Enums§
Functions§
- auth_
actor_ resolver_ for_ context - auth_
actor_ resolver_ for_ context_ with_ composition - auth_
anonymous_ linked_ module - auth_
github_ linked_ module - auth_
google_ linked_ module - auth_
linked_ module - auth_
oauth_ linked_ module - auth_
oidc_ linked_ module - auth_
password_ linked_ module - auth_
phone_ linked_ module - compose_
host_ system_ plane_ runtime - 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 provider event-handler result actions. - function_
registry - Build a
FunctionRegistryfrom every module’s binding. - host_
wiring_ for_ context - host_
wiring_ for_ context_ with_ composition - 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_
modules_ with_ composition_ and_ provider_ plan - load_
provider_ runtime_ with_ composition - 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 - provider_
runtime_ plan_ from_ workspace - Loads a target-owned Provider Runtime Plan when Module management artifacts exist. A workspace with neither artifact is a Linked-only Host; a partial or inconsistent management state fails closed.
- 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 - scheduled_
functions - Build host-owned runtime schedules declared by loaded modules.
- 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