Skip to main content

warn_on_schema_mismatch

Function warn_on_schema_mismatch 

Source
pub async fn warn_on_schema_mismatch(
    __arg0: State<&'static str>,
    request: Request<Body>,
    next: Next,
) -> Response<Body>
Expand description

Wraps a router with the drift-detection check. expected_sha is the server’s own SCHEMA_SHA256 constant ('static, baked in at macro- expansion time — see crates/cratestack-macros/src/include/server.rs).