subduction_ephemeral 0.8.2

Ephemeral (non-persisted) messaging for Subduction
Documentation
//! Ephemeral (non-persisted) messaging for Subduction.
//!
//! Provides authenticated, fire-and-forget messaging scoped to
//! [`Topic`] identifiers. Primary use cases: cursor positions,
//! selections, presence-in-document, typing indicators, and other
//! transient application-level signals.
//!
//! # Design
//!
//! See [`design/ephemeral.md`] in the repository root for the
//! protocol-level design: subscription model, dedup behaviour,
//! bounce-back amplification mitigation, cross-edge fast-path
//! rationale, threat model, and wire format.
//!
//! [`design/ephemeral.md`]: https://github.com/inkandswitch/subduction/blob/main/design/ephemeral.md
//!
//! # Architecture
//!
//! ```text
//! subduction_core                      subduction_ephemeral
//! ┌──────────────────────┐            ┌────────────────────────┐
//! │ Connection<K, M>     │            │ EphemeralMessage       │
//! │ Handler<K, C>        │◄───────────│ EphemeralHandler       │
//! │ SyncMessage          │            │ EphemeralPolicy        │
//! │ SyncHandler          │            └────────────────────────┘
//! └──────────────────────┘
//! ```
//!
//! The core crate knows nothing about ephemeral behavior. This crate
//! defines its own message type ([`EphemeralMessage`]), policy trait
//! ([`EphemeralPolicy`]), and handler ([`EphemeralHandler`]).
//!
//! Wire multiplexing (combining sync, ephemeral, and keyhive messages
//! into a single envelope type) is the application's responsibility.
//! See `subduction_wasm` for an example `WireMessage` enum.
//!
//! [`Topic`]: topic::Topic
//! [`EphemeralMessage`]: message::EphemeralMessage
//! [`EphemeralPolicy`]: policy::EphemeralPolicy
//! [`EphemeralHandler`]: handler::EphemeralHandler

#![cfg_attr(not(feature = "std"), no_std)]
#![forbid(unsafe_code)]

extern crate alloc;

pub mod clock;
pub mod composed;
pub mod config;
pub mod handler;
pub mod message;
pub mod nonce_cache;
pub mod payload_header;
pub mod policy;
pub mod topic;