Skip to content

v0.1.17 — Typed Handler Args & DI State Injection

Choose a tag to compare

@decebal decebal released this 01 Mar 18:11
· 30 commits to main since this release
4755bdb

What's New

Added

  • Typed Handler Argsregister_with_args() deserializes JSON args into T: DeserializeOwned before calling the handler
  • State InjectionRouter::with_state() + register_with_state() / register_with_state_only() inject State<Arc<S>> into handlers
  • Args ForwardingRouter::call_handler() now forwards the request string to handlers instead of ignoring it
  • Tauri DI Convenienceallframe_tauri::init_with_state(router, state) for one-line Tauri plugin setup with DI
  • State in Preludeuse allframe_core::prelude::State for ergonomic imports
  • MCP Typed Args — MCP tools automatically gain typed arg support (zero code changes needed)

Fixed

  • State type mismatches return Err instead 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