Skip to main content

Crate composable_runtime

Crate composable_runtime 

Source
Expand description

Modulewise Composable Runtime

An inversion of control runtime for Wasm Components. Supports composition, config, and capability management.

Modules§

header
Well-known header keys.

Macros§

create_capability
Macro for creating a (&str, HostCapabilityFactory) tuple with reduced boilerplate.
create_state
Macro for implementing create_state_boxed() with automatic TypeId inference.

Structs§

CapabilityStateHasData
HasData implementation that projects ComponentState to a capability’s state type.
CategoryClaim
A category claim with an optional selector for discriminator-based dispatch.
Component
A named Wasm Component and its exported functions.
ComponentGraph
Directed graph of component and capability definitions with dependency and interceptor edges.
ComponentState
State passed to Wasm components during execution.
Condition
A single condition within a selector.
Function
A function specification.
FunctionParam
A function parameter specification.
GraphBuilder
Builder for constructing a ComponentGraph.
Message
The internal message type.
MessageBuilder
Builder for constructing a Message.
Runtime
Composable Runtime for invoking Wasm Components
RuntimeBuilder
Builder for configuring and creating a Runtime
Selector
Matches against a flattened string-to-string map. All conditions must match (AND semantics).

Enums§

Operator
Comparison operator for a selector condition.

Traits§

Channel
Messaging channel.
ComponentInvoker
Invoke components by name.
ConfigHandler
Handles configuration for one or more categories.
DefinitionLoader
Reads configuration from a source and produces generic definitions.
HostCapability
Trait implemented by host capability instances.
MessagePublisher
Publish messages to channels by name.
Service
Lifecycle-managed service that participates in config parsing and runtime.

Type Aliases§

HostCapabilityFactory
Factory function that creates a HostCapability instance from TOML config.
PropertyMap
Source-agnostic property map with JSON values.