1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//! `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:
//!
//! | feature | re-export | pulls |
//! |---|---|---|
//! | _(always on)_ | [`kernel`] | facts + ports, no I/O |
//! | `runtime` | [`runtime`] | optional components (turn loop, dispatch) |
//! | `protocol` | [`protocol`] | wire-protocol translation (no transport) |
//! | `providers` | [`providers`] | reqwest gateways (implies `protocol`) |
//! | `extension-mcp` | `extension` | MCP 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:
//!
//! ```toml
//! causa = "0.0.1" # default: runtime + providers
//! ```
//!
//! ```toml
//! causa = { version = "0.0.1", features = ["full"] } # + MCP extensions
//! ```
//!
//! ```toml
//! causa = { version = "0.0.1", default-features = false } # kernel only
//! ```
//!
//! ```toml
//! causa = { version = "0.0.1", 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.
/// Facts + contracts. Always available, with no I/O.
pub use causa_kernel as kernel;
/// Reference driver over the kernel ports.
pub use causa_runtime as runtime;
/// Kernel-native wire-protocol translation (transport-free).
pub use causa_protocol as protocol;
/// Reqwest adapters for the kernel `ModelGateway` seam.
pub use causa_provider as providers;
/// Extension adapters (`DynamicToolSource` implementors).
pub use causa_extension as extension;