qail_gateway/
lib.rs

1//! # QAIL Gateway
2//!
3//! The native data layer that can replace REST/GraphQL with binary AST protocol.
4//!
5//! ## Architecture
6//!
7//! ```text
8//! Client → QAIL AST (binary) → Gateway → Postgres/Qdrant/Redis
9//! ```
10//!
11//! ## Features
12//!
13//! - **Binary wire format**: Not JSON, but QAIL AST binary
14//! - **Row-level security**: Policies defined in schema.qail
15//! - **~1ms latency**: vs ~10ms for REST/GraphQL
16//! - **Multi-database**: Postgres + Qdrant + Redis federation
17//!
18//! ## Status
19//!
20//! 🚧 **Draft** - This crate is in early design phase.
21
22#![warn(clippy::all)]
23#![warn(missing_docs)]
24
25pub mod auth;
26pub mod config;
27pub mod error;
28pub mod policy;
29pub mod server;
30
31pub use config::GatewayConfig;
32pub use error::GatewayError;
33pub use server::Gateway;