orbit_rustls/lib.rs
1//! Fleet-shared rustls state over Orbit shared memory.
2//!
3//! The public adapter implements the enabled rustls version's
4//! `server::StoresServerSessions` trait. The underlying table is connected to
5//! rustls only through version-specific adapters: it imports no rustls types
6//! and treats rustls-generated keys and encoded values as opaque, sensitive
7//! bytes. rustls owns generation, encoding, and validation; this crate owns
8//! bounded storage, TTL, and atomic single-use `take` across fleet processes.
9//!
10//! This crate is not an application or web-session store. Its table is lossy,
11//! fixed-capacity, and allowed to turn a missing entry into a full TLS
12//! handshake. Application sessions normally require reusable reads, explicit
13//! durability, and different eviction guarantees.
14
15#[cfg(not(unix))]
16compile_error!("orbit-rustls currently requires a Unix target");
17
18#[cfg(unix)]
19mod session;
20
21#[cfg(unix)]
22pub use session::{
23 DEFAULT_SESSION_TTL, FleetServerSessions, MAX_SESSION_TTL, OrbitSessionStorage, SessionDomain,
24};