mesofact_core/proxy/mod.rs
1//! axum proxy — boot, manifest reload, Mode 1 dispatch, worker pool, and the
2//! P9 Mode 2 SSR slice (response cache + cache-key composition + session +
3//! source generations). Mode 3 dispatch is stubbed (501) — wired up in P10.
4//! See `.yah/docs/architecture/mesofact.md` §"IPC protocol" and §"Components".
5
6//! ## Why half of this is `cfg(unix)` (yah R918-T1)
7//!
8//! The yah CLI links this crate transitively (yah -> cloud-admin /
9//! control-plane -> mesofact -> mesofact-core) purely for the SSR slice's
10//! neutral halves — `cache`, `session` and `source_gen` are what
11//! `mesofact_core`'s lib re-exports. The serving half is a Unix daemon: the
12//! render pool talks to Bun workers over AF_UNIX and the manifest reloads on
13//! SIGHUP. Gating the daemon half keeps the neutral half reachable from a
14//! Windows build instead of making the whole crate unbuildable for it.
15//!
16//! The split is exact rather than convenient: `router` is here because it
17//! imports `worker_client` and `worker_pool`, not because it is itself
18//! Unix-bound.
19
20pub mod cache;
21pub mod config;
22pub mod metrics;
23pub mod session;
24pub mod source_gen;
25pub mod trace;
26
27#[cfg(unix)]
28pub mod manifest_loader;
29#[cfg(unix)]
30pub mod router;
31#[cfg(unix)]
32pub mod worker_client;
33#[cfg(unix)]
34pub mod worker_pool;