peat_lite/protocol/mod.rs
1//! Peat-Lite Wire Protocol
2//!
3//! Single source of truth for the Peat-Lite binary protocol (ADR-035).
4//! This module is `no_std`-compatible and has zero additional dependencies,
5//! so it can be consumed by both embedded (`peat-lite`) and hosted (`peat-mesh`) code.
6
7pub mod capabilities;
8pub mod constants;
9pub mod crdt_type;
10pub mod error;
11pub mod header;
12pub mod message_type;
13pub mod ota;
14pub mod ttl;
15
16pub use capabilities::NodeCapabilities;
17pub use constants::*;
18pub use crdt_type::CrdtType;
19pub use error::MessageError;
20pub use header::{decode_header, encode_header, Header};
21pub use message_type::MessageType;
22pub use ttl::{append_ttl, default_ttl_for_crdt, strip_ttl};