Skip to main content

forma_server/
lib.rs

1//! Axum middleware for Forma SSR.
2//!
3//! Provides page rendering (`render_page`), content-hashed asset serving,
4//! CSP headers with cryptographic nonces, service worker handling, and
5//! the Phase 1 (client mount) / Phase 2 (SSR reconcile) rendering pipeline.
6//!
7//! # Quick Start
8//!
9//! ```rust,no_run
10//! use forma_server::{render_page, PageConfig, RenderMode};
11//! ```
12
13pub mod assets;
14pub mod csp;
15pub mod ir_compat;
16pub mod sw;
17pub mod template;
18pub mod types;
19
20pub use ir_compat::{check_ir_compatibility, load_ir_modules};
21pub use template::render_page;
22pub use types::*;