breaking:Router::with_state is no longer a constructor. It is instead
used to convert the router into a RouterService (#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 and Router::merge now only supports nesting
routers that use the same state type as the router they're being merged into.
Use FromRef 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)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps axum from 0.6.0-rc.4 to 0.6.0-rc.5.
Release notes
Sourced from axum's releases.
Commits
878ae73
New release candidates (#1541)4689853
Add example of how to test WebSockets (#1535)7d58d49
Add#[from_ref(skip)]
(#1537)64960bb
Type safe state inheritance (#1532)ba8e9c1
Addon_failed_upgrade
callback toWebSocketUpgrade
(#1539)7090649
Add fallback inheritance for nested routers (#1521)2e8a7e5
FixHandler::with_state
not working if request body was changed via layer (...b1f894a
Fix unused import if compiling with default featuresc461f1d
Add accept_unmasked_frames setting in WebSocketUpgrade (#1529)5874359
Add more tests for theAllow
header when returning405
(#1526)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)