Skip to main content

weida_core/
lib.rs

1//! I/O-free core model of the weida messaging framework.
2//!
3//! This crate contains no networking, no `tokio` and no serialization: only the
4//! vocabulary types (endpoint addresses, limits, trace context, errors, the
5//! host a peer counts as) that the wire codec and the transport share.
6//! Everything here is unit-testable without a socket.
7//!
8//! There are no correlation or acknowledgement state machines here: Req/Rep
9//! rides one bidirectional QUIC stream, so the stream *is* the correlation, and
10//! delivery is QUIC's own transport receipt rather than an application-level
11//! ACK (`docs/ARCHITECTURE.md`, layer model).
12
13pub mod addr;
14pub mod error;
15pub mod host;
16pub mod identity;
17pub mod limits;
18pub mod trace;
19
20pub use addr::{
21    Address, DEFAULT_PORT, EndpointAddr, InprocAddr, MAX_BUS_BYTES, MAX_PATH_BYTES,
22    MAX_PIPE_NAME_BYTES, MAX_SOCKET_PATH_BYTES, PIPE_NAMESPACE, PipeAddr, RELAY_PATH, RelayAddr,
23    SCHEME, SCHEME_INPROC, SCHEME_PIPE, SCHEME_RELAY, SCHEME_UNIX, UnixAddr,
24    validate_endpoint_path,
25};
26pub use error::{Error, ErrorCode, LossCause, Result, StopReason};
27pub use host::{HostKey, host_key};
28pub use identity::{Fingerprint, LocalPrincipal, PeerIdentity, WindowsPrincipal};
29pub use limits::{Congestion, DEFAULT_DATAGRAM_RECEIVE_BYTES, Limits};
30pub use trace::{TraceContext, TraceError};