shelly-liveview 0.2.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,
    GridSavedView, GridSort, GridSortDirection, GridState, InboxItem, JsInteropDispatch,
    ServerMessage, StreamPosition, Toast, ToastLevel,
};
pub use pubsub::{PubSub, PubSubCommand, PubSubMessage, PubSubSubscription};
pub use runtime::{RuntimeCommand, RuntimeEvent};
pub use session::LiveSession;
pub use telemetry::{
    MemoryTelemetrySink, NoopTelemetrySink, TelemetryEvent, TelemetryEventKind, TelemetrySink,
};