skyzen 0.1.1

A fast, ergonomic HTTP framework that works everywhere
//! Durable Object abstraction for hibernation-first, stateful edge computing.
//!
//! This module provides the core types for building Durable Objects with Skyzen:
//!
//! - [`DurableObject`] — The trait your DO struct implements
//! - [`DurableContext`] — Service access in non-routed contexts (websocket events)
//! - [`NativeDurableNamespace`] — Native simulator namespace for process-local Durable Objects
//! - [`NativeDurableObjectStub`] — Native stub for dispatching requests to a simulated object
//! - [`WebSocketEvent`] — Hibernation WebSocket events
//! - [`WebSocketConnection`] — Opaque handle to a hibernating WebSocket
//! - [`HibernationWebSocketUpgrade`] — Responder for accepting hibernating WebSockets
//! - [`DurableConnections`] — Manage all WebSocket connections
//! - [`DurableObjectId`] — The unique identity of a Durable Object instance
//! - [`DurableObjectError`] — Error type for Durable Object operations

mod connections;
mod context;
mod error;
mod id;
#[cfg(not(target_arch = "wasm32"))]
mod native;
mod object;
mod websocket;

pub use connections::DurableConnections;
pub use connections::DurableConnectionsInner;
pub use context::DurableContext;
pub use error::DurableObjectError;
pub use id::DurableObjectId;
#[cfg(not(target_arch = "wasm32"))]
pub use native::{NativeDurableNamespace, NativeDurableObjectStub};
pub use object::DurableObject;
#[cfg(all(feature = "ws", target_arch = "wasm32"))]
pub use websocket::DurableClientWebSocket;
#[cfg(all(feature = "ws", target_arch = "wasm32"))]
pub use websocket::DurableObjectState;
pub use websocket::{
    HibernationWebSocketUpgrade, WebSocketConnection, WebSocketConnectionInner, WebSocketEvent,
};