v0.1.17 — Typed Handler Args & DI State Injection
What's New
Added
- Typed Handler Args —
register_with_args()deserializes JSON args intoT: DeserializeOwnedbefore calling the handler - State Injection —
Router::with_state()+register_with_state()/register_with_state_only()injectState<Arc<S>>into handlers - Args Forwarding —
Router::call_handler()now forwards the request string to handlers instead of ignoring it - Tauri DI Convenience —
allframe_tauri::init_with_state(router, state)for one-line Tauri plugin setup with DI Statein Prelude —use allframe_core::prelude::Statefor ergonomic imports- MCP Typed Args — MCP tools automatically gain typed arg support (zero code changes needed)
Fixed
- State type mismatches return
Errinstead of panicking in the request path - Prometheus metrics collector now uses real metric operations instead of no-op stubs
Crates
| Crate | Version |
|---|---|
allframe |
0.1.17 |
allframe-core |
0.1.17 |
allframe-macros |
0.1.17 |
allframe-mcp |
0.1.17 |
allframe-tauri |
0.1.17 |
allframe-forge |
0.1.17 |
Full Changelog: v0.1.16...v0.1.17