Skip to main content

qualia_core_db/net/peer/fabric/
mod.rs

1//! Capability-scoped connection fabric (CSCP, `draft-webcivics-cscp-00`).
2//!
3//! Applications call [`connect`]. The fabric admits intent, resolves a private
4//! contact, excludes prohibited paths, then scores the remainder. CSCP is a
5//! control protocol. This crate does not implement QUIC, MASQUE, or a new cipher.
6
7pub mod capsule;
8pub mod carrier;
9pub mod connect;
10pub mod contact;
11pub mod evidence;
12pub mod experiments;
13pub mod intent;
14pub mod kernel;
15pub mod lease;
16pub mod lease_protocol;
17pub mod mailbox;
18pub mod outcome;
19pub mod receipt;
20pub mod receipt_store;
21pub mod select;
22pub mod session;
23pub mod wire;
24
25#[cfg(not(target_arch = "wasm32"))]
26pub mod relay;
27
28pub use carrier::{CarrierKind, PathClass};
29pub use connect::{connect, ConnectHandle, DriveOutcome, Fabric};
30pub use contact::{ContactDescriptor, LocatorKind};
31pub use evidence::{ObserverKind, PathEvidence, TransportWitness};
32pub use intent::{ConnectionIntent, PeerId, ProtectionPolicy, Purpose, PurposeClass};
33pub use kernel::{FabricError, FabricState, Kernel, KernelEffect, KernelEvent};
34pub use lease::{CustodyLease, RelayLease};
35pub use mailbox::PrivateMailbox;
36pub use receipt::{OpReceipt, ReceiptStatus};
37pub use select::{exclude_then_rank, RankedPath};
38pub use session::SessionReady;
39pub use wire::{connect_from_wire, encode_connect_request, CscpError, RejectReason};