Commit Graph

5 Commits

Author SHA1 Message Date
1ce2c25431 update examples 2026-05-27 01:43:59 -04:00
1d6708e23b API improvements
- Added public `Error`, `Result`, `InitFuture`, and `ShutdownFuture`
  aliases.
- Added `TypeMapState` as the default state instead of `Arc<TypeMap>`.
- Added `App::route`, `App::mount`, and `App::store`.
- Changed `App::init()` to return `InitializedApp<S>`.
- Added `InitializedApp::router()`, `state()`, `into_parts()`, and
  `shutdown()`.
- Made shutdown hooks fallible: `Result<()>`.
- Made `AdHocPlugin::on_shutdown` accept capturing closures.
- Added `Default` for `App` and `AdHocPlugin`.

Improved AppState macro:
- Uses `axum_app_wrapper::Error`.
- Supports generic state structs.
- Fixed the stale `Arc<AppState>` doc snippet.
2026-05-27 01:04:50 -04:00
386eb59f84 add example 2026-05-26 02:52:27 -04:00
513cbc19a3 Update README.md 2026-05-26 02:44:08 -04:00
995f3cc61a add docs 2026-05-26 02:14:41 -04:00