shelly-liveview 0.3.0

Core runtime primitives for Shelly LiveView.
Documentation
//! Core runtime primitives for Shelly LiveView.
//!
//! This crate intentionally avoids HTTP concerns. It defines the framework
//! contract: events, server messages, HTML rendering, session lifecycle, and
//! the `LiveView` trait.

mod component;
mod context;
mod error;
mod event;
mod html;
mod live_view;
mod protocol;
mod pubsub;
mod runtime;
mod session;
mod telemetry;

pub use component::{ComponentId, ComponentRender, LiveComponent};
pub use context::{Context, SessionId};
pub use error::{LiveResult, ShellyError};
pub use event::Event;
pub use html::{escape_html, Html, Template, TemplateSnapshot};
pub use live_view::LiveView;
pub use protocol::{
    ChartAnnotation, ChartPoint, ClientMessage, DynamicSlotPatch, GridColumn, GridPinned, GridRow,
    GridRowsWindow, GridSavedView, GridSort, GridSortDirection, GridState, InboxItem,
    JsInteropDispatch, ResumeStatus, ServerMessage, StreamBatchOperation, StreamPosition, Toast,
    ToastLevel,
};
pub use pubsub::{
    PubSub, PubSubBackend, PubSubCapabilities, PubSubCommand, PubSubDeliveryScope, PubSubMessage,
    PubSubOrdering, PubSubPresenceSnapshot, PubSubReceiveError, PubSubSubscription,
    SessionAffinityRequirement,
};
pub use runtime::{RuntimeCommand, RuntimeEvent};
pub use session::LiveSession;
pub use telemetry::{
    MemoryTelemetrySink, NoopTelemetrySink, TelemetryEvent, TelemetryEventKind, TelemetrySink,
};