Skip to main content

Crate lenso_bootstrap

Crate lenso_bootstrap 

Source
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 (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.

Structs§

HostComposition
HostLinkedModule
HostSystemPlaneConfig
HostSystemPlaneRuntime
HostWiring
LinkedHttpRouteOwner
Public HTTP path ownership for linked modules.

Enums§

CompositionProfile

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 EventHandlerRegistry from every module’s binding.
event_handlers_with_runtime_actions
Build an EventHandlerRegistry with host runtime actions enabled for provider event-handler result actions.
function_registry
Build a FunctionRegistry from 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 OpenAPI docs) onto base.
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 with modules by 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 OpenAPI path stays pure (no AppContext).
story_display_descriptors_for_config
story_display_descriptors_for_context
story_display_descriptors_for_profile