bp_core/lib.rs
1//! # bp-core — BillPouch core library
2//!
3//! Provides all types, networking, daemon logic and control protocol for
4//! BillPouch — a P2P social distributed filesystem.
5//!
6//! ```text
7//! ┌──────────────────────────────────────────────────────┐
8//! │ BillPouch Network │
9//! │ │
10//! │ ┌────────┐ ┌────────┐ ┌────────┐ │
11//! │ │ Pouch │◄────│ Post │────►│ Bill │ │
12//! │ │(storage│ │(relay) │ │(I/O) │ │
13//! │ └────────┘ └────────┘ └────────┘ │
14//! │ gossipsub + Kademlia DHT │
15//! └──────────────────────────────────────────────────────┘
16//! ```
17//!
18//! ## Modules
19//! - [`identity`] — Ed25519 keypair management (login/logout)
20//! - [`service`] — Service types (bill / pouch / post) and registry
21//! - [`network`] — libp2p swarm, gossipsub, Kademlia DHT, mDNS
22//! - [`control`] — Unix socket control protocol (CLI ↔ daemon)
23//! - [`daemon`] — Main daemon task orchestrating the above
24//! - [`config`] — Configuration file paths
25//! - [`error`] — Unified error type
26
27pub mod coding;
28pub mod config;
29pub mod control;
30pub mod daemon;
31pub mod error;
32pub mod identity;
33pub mod invite;
34pub mod network;
35pub mod service;
36pub mod storage;
37
38pub use error::{BpError, BpResult};