reifydb_sub_server/lib.rs
1// SPDX-License-Identifier: Apache-2.0
2// Copyright (c) 2025 ReifyDB
3#![cfg_attr(not(debug_assertions), deny(clippy::disallowed_methods))]
4#![cfg_attr(debug_assertions, warn(clippy::disallowed_methods))]
5
6//! Common infrastructure for HTTP and WebSocket server subsystems.
7//!
8//! This crate provides shared types and utilities used by `sub-server-http` and
9//! `sub-server-ws`. It includes:
10//!
11//! - **Authentication**: Identity extraction from headers and tokens
12//! - **Execution**: Async wrappers around synchronous database operations
13//! - **Response**: Frame conversion for JSON serialization
14//! - **Runtime**: Shared tokio runtime management
15//! - **State**: Application state for request handler
16
17#![cfg_attr(not(debug_assertions), deny(warnings))]
18#![allow(clippy::tabs_in_doc_comments)]
19
20pub mod actor;
21pub mod auth;
22pub mod dispatch;
23pub mod execute;
24pub mod interceptor;
25pub mod response;
26pub mod state;
27pub mod subscribe;
28pub mod wire;