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
//! Ghost-Link Core Library
//!
//! A zero-config LAN fabric that turns spare local GPUs into a shared execution surface
//! for large-model inference and training.
//!
//! # Features
//! - Zero-copy SPSC ring buffers for DMA-style hand-off
//! - Binary protocol with CRC32 checksums for frame integrity
//! - Thread-safe cluster state with metrics collection
//! - Greedy layer assignment with fault tolerance
//! - AF_XDP/eBPF socket integration (Linux)
//! - Network health monitoring
//! - Load balancing and tensor distribution
//!
//! # Architecture
//! ```text
//! crates/
//! ├── ghostlink-core/ # Shared runtime primitives
//! │ ├── ring.rs # Zero-copy SPSC ring buffer
//! │ ├── protocol.rs # Binary protocol with CRC32
//! │ ├── cluster.rs # Thread-safe node state
//! │ ├── planning.rs # Layer assignment + fault tolerance
//! │ ├── health.rs # Network health monitoring
//! │ ├── load_balance.rs # Tensor distribution
//! │ ├── xdp.rs # AF_XDP/eBPF integration (Linux)
//! │ └── dashboard.rs # Terminal UI with ratatui
//! └── ghost-link/ # CLI demo entrypoint
//! ```
// Re-export common types for convenience
pub use ;
pub use ;
pub use NodeResources;
pub use ;