Commit Graph

21 Commits

Author SHA1 Message Date
1ce2c25431 update examples 2026-05-27 01:43:59 -04:00
bcb5c31c31 add plugin naming 2026-05-27 01:39:42 -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
958060e538 Update ci.yml
All checks were successful
CI / build (push) Successful in 18s
2026-05-26 03:22:30 -04:00
bda85091af ci: enforce frozen lockfile
Some checks failed
CI / build (push) Failing after 17s
2026-05-26 03:19:14 -04:00
e2d51e9e91 ci: update rust version
All checks were successful
CI / build (push) Successful in 42s
2026-05-26 03:12:02 -04:00
e1440c6d57 Update ci.yml
Some checks failed
CI / build (push) Failing after 49s
2026-05-26 03:05:46 -04:00
e4d9af1e1c add CI 2026-05-26 03:05:13 -04:00
f28d9f5d14 add comments to example 2026-05-26 02:59:03 -04:00
25a9005375 bump version 2026-05-26 02:52:34 -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
a5b42ab55a Run shutdown hooks sequentially in reverse 2026-05-26 01:58:56 -04:00
65007f6cd2 AdHocPlugin on_init and on_setup accept capturing closures 2026-05-26 01:47:53 -04:00
57dd1da621 Update lib.rs 2026-03-19 22:11:28 -04:00
004496b080 chore: bump version 2026-03-19 22:02:34 -04:00
c4e7f06247 add AppState derive macro for convenient state extraction 2026-03-19 22:02:08 -04:00
a8d5e4f962 don't add state to router in init() 2025-11-16 13:41:03 -05:00
f9c9203b29 add library from private project 2025-11-14 15:01:31 -05:00
633c4c8e3e first commit 2025-11-14 14:52:48 -05:00