peat-lite 0.2.5

Lightweight CRDT primitives for resource-constrained Peat nodes
Documentation
//! Peat-Lite Wire Protocol
//!
//! Single source of truth for the Peat-Lite binary protocol (ADR-035).
//! This module is `no_std`-compatible and has zero additional dependencies,
//! so it can be consumed by both embedded (`peat-lite`) and hosted (`peat-mesh`) code.

pub mod capabilities;
pub mod constants;
pub mod crdt_type;
pub mod document;
pub mod error;
pub mod header;
pub mod message_type;
pub mod ota;
pub mod ttl;

pub use capabilities::NodeCapabilities;
pub use constants::*;
pub use crdt_type::CrdtType;
pub use document::{
    DocumentRef, DOC_FLAG_ENCRYPTED, DOC_FLAG_TOMBSTONE, MAX_BODY_LEN, MAX_COLLECTION_LEN,
    MAX_DOC_ID_LEN,
};
pub use error::MessageError;
pub use header::{decode_header, encode_header, Header};
pub use message_type::MessageType;
pub use ttl::{append_ttl, default_ttl_for_crdt, strip_ttl};