wsprism_core/lib.rs
1//! wsPrism core: transport-agnostic protocol primitives, error types, and flags.
2//!
3//! This crate defines the wire-level contracts and error surface shared by the
4//! gateway, services, and SDK tooling. It intentionally carries no transport or
5//! runtime dependencies so it can be reused in multiple contexts.
6//!
7//! # Defensive guarantees
8//! Panics, `unwrap`, and `expect` are compile-denied here
9//! (`#![deny(clippy::panic, clippy::unwrap_used, clippy::expect_used)]`).
10//! All fallible paths must surface as `WsPrismError`/`Result` so production
11//! processes do not crash on malformed input or bad traffic.
12
13#![deny(clippy::unwrap_used)]
14#![deny(clippy::expect_used)]
15#![deny(clippy::panic)]
16
17pub mod error;
18pub mod protocol;
19
20/// Shared result type.
21pub use error::{Result, WsPrismError};