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
//! # `oxide-mesh` — Inter-Agent Communication
//!
//! Lightweight, transport-agnostic peer-to-peer fabric for Rust Oxide agents.
//! Two transports ship today:
//!
//! * [`local`] — in-process `tokio::sync::mpsc` channels. Used by tests and
//! embedded multi-agent setups where every peer shares the same Tokio
//! runtime.
//! * [`tcp`] — JSON-line framed TCP. Used for cross-process / cross-host
//! peers. The wire format is one [`PeerMessage`] per line, so it inter-
//! operates with hand-rolled clients (netcat for debugging is fine).
//!
//! The protocol is intentionally small — five message kinds — and is
//! deliberately *not* libp2p. Future federated-learning work will pile gossip
//! and CRDT primitives on top of this base layer rather than adopting a
//! whole networking stack.
//!
//! [`MeshModule`] exposes the mesh on the `oxide-k` bus so agents can send
//! broadcasts, direct messages, and task assignments through standard kernel
//! plumbing.
pub use BusBridge;
pub use ;
pub use ;
pub use MeshModule;
pub use ;
pub use ;
pub use TcpMesh;