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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
//! `bb-runtime` — sans-IO engine. Hosts Node + Engine + framework
//! primitives + role-runtime traits + syscall registration +
//! snapshot. Consumes compiled `ModelProto`s from `bb-compiler`.
//! Concrete components live in `bb-ops`.
// bb-derive emits `::bytesandbrains::*` paths; resolve them locally.
extern crate self as bytesandbrains;
/// `ConcreteComponent` polymorphism contract + the
/// `ComponentHandle` fn-pointer-capture wrapper.
/// `ExecState` — per-poll execution-state bundle (frontier,
/// slot table, pending state, scheduler, inbound contexts,
/// monotonic ID allocator). Owned by `Engine` as one field.
/// Engine identifier types — `PeerId`, `NodeSiteId`, `OpRef`,
/// `ComponentRef`, `ExecId`, `CommandId`, `RequestId`, `OpsetId`,
/// `ComponentTag`.
/// `AtomicOpsetDecl`, `AtomicOpDecl`, `AtomicOpKind`, `DispatchResult`.
/// The universal `SlotValue` trait.
/// `CompletionHandle`, `CompletionSink`, `ContractResponse`.
/// `AnyComponent`, `ErasedComponent`, `ComponentPackage`, `RestoreError`.
/// User-facing Contract traits (`Index`, `Backend`, `Aggregator`, …).
/// Typed in-Node event bus.
/// The sans-IO Engine state machine.
/// `WireEnvelope` codec; per-type decoders register through
/// `bb_ir::slot_value::register_type_node!`.
/// Public error taxonomies.
/// `try_reserve_exact` wrapper at ingress boundaries so allocator
/// failures surface as typed events. `fallible::testing` is a
/// stub-allocator seam under `test-components`.
pub
/// Framework primitives bundled into every `RuntimeResourceRef`.
/// Lock-free MPMC ingress queue.
/// Public `Node` + lazy build chain.
/// Global inventory-collected registry for custom ops.
/// The `<Role>Runtime` role traits.
/// Runtime resource handle + `ComponentTimerKind`.
/// `NodeSnapshot`.
/// Foundation `SlotValue` impls - `PeerIdValue`, `WireReqIdValue`,
/// `TriggerValue`, `BytesValue`, `CommandIdValue`.
/// Optional OpenTelemetry layer constructors for the engine's
/// `tracing::` spans.