arcature 2026.2.0

Arcature application framework: a high-level Application facade over the certified Arcature subsystems, with the low-level Axum/Tower escape hatch preserved.
Documentation
use super::App;

impl<S> App<S>
where
    S: Clone + Send + Sync + 'static,
{
    /// Provide the application state.
    ///
    /// Forwards to [`axum::Router::with_state`]. Handlers registered on this
    /// application may extract `S` via [`axum::extract::State`]; this call
    /// resolves that state, producing an `App<S2>` whose expected state type
    /// becomes `S2` (commonly `()` when all state is now provided). The state
    /// type is tracked by the compiler, not erased.
    pub fn with_state<S2>(self, state: S) -> App<S2> {
        App {
            router: self.router.with_state(state),
        }
    }
}