-
breaking:
Router::with_state
is no longer a constructor. It is instead
used to convert the router into aRouterService
(#1532)This nested router on 0.6.0-rc.4
Router::with_state(state).route(...);
Becomes this in 0.6.0-rc.5
Router::new().route(...).with_state(state);
-
breaking::
Router::inherit_state
has been removed. Use
Router::with_state
instead (#1532) -
breaking::
Router::nest
andRouter::merge
now only supports nesting
routers that use the same state type as the router they're being merged into.
UseFromRef
for substates (#1532) -
added: Add
accept_unmasked_frames
setting in WebSocketUpgrade (#1529) -
fixed: Nested routers will now inherit fallbacks from outer routers (#1521)
-
added: Add
WebSocketUpgrade::on_failed_upgrade
to customize what to do
when upgrading a connection fails (#1539)