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
//! # BytesAndBrains
//!
//! A Rust library for decentralized networking and edge AI.
//!
//! ## Feature Flags
//!
//! | Feature | Description |
//! |------------|--------------------------------------|
//! | `overlay` | Overlay protocol base |
//! | `gossip` | Gossip peer sampling protocol |
//! | `protean` | Protean decentralized ANN protocol |
//! | `codec` | Product quantization codec |
//! | `index` | Vector indexing structures |
//! | `ml` | ML utilities (k-means) |
//! | `proto` | Protobuf serialization |
//! | `simd` | SIMD-accelerated distance functions |
//! | `full` | Enable everything |
//!
//! ## Quick Start
//!
//! ```toml
//! [dependencies]
//! bytesandbrains = { version = "0.1", features = ["protean", "proto"] }
//! ```
/// Core types: embeddings, distances, peers, addresses, protocol traits.
pub use bb_core as core;
/// Overlay protocol implementations (gossip, protean).
pub use bb_overlay as overlay;
/// Product quantization codec for vector compression.
pub use bb_codec as codec;
/// Vector indexing structures.
pub use bb_index as index;
/// Machine learning utilities (k-means clustering).
pub use bb_ml as ml;