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:

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
LinkedHttpRouteOwner
Public HTTP path ownership for linked modules.
RemoteModuleServiceSupervisor

Enums§

CompositionProfile

Functions§

admin_modules
Aggregate admin-capable modules: those declaring an admin surface and providing either an AdminDataSource or an AdminActionSource. 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_password_linked_module
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 remote event-handler result actions.
function_registry
Build a FunctionRegistry from every module’s binding.
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 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
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.
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 OpenAPI path stays pure (no AppContext).
story_display_descriptors_for_config
story_display_descriptors_for_context
story_display_descriptors_for_profile