Skip to main content

Crate causa

Crate causa 

Source
Expand description

causa — facade over the causa-* family.

The kernel is always present; every other layer is a Cargo feature so hosts pay only for what they use:

featurere-exportpulls
(always on)kernelfacts + ports, no I/O
runtimeruntimeoptional components (turn loop, dispatch)
protocolprotocolwire-protocol translation (no transport)
providersprovidersreqwest gateways (implies protocol)
extension-mcpextensionMCP client (implies mcp adapter)

The default is the runnable stack (runtime + providers); full adds the extensions. --no-default-features is the bare kernel for offline audit or minimal embedding. Choose one dependency declaration:

causa = "0.0.6" # default: runtime + providers
causa = { version = "0.0.6", features = ["full"] } # + MCP extensions
causa = { version = "0.0.6", default-features = false } # kernel only
causa = { version = "0.0.6", default-features = false, features = ["runtime"] }

The fine-grained crates (causa-kernel, causa-runtime, …) remain published and usable directly; this facade is a convenience alias, not a replacement.

Re-exports§

pub use causa_kernel as kernel;
pub use causa_runtime as runtime;
pub use causa_protocol as protocol;
pub use causa_provider as providers;
pub use causa_extension as extension;