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