Skip to content

Commit

Permalink
Document breaking changes related to nest (#1684)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpdrsn committed Jan 7, 2023
1 parent 1aa357c commit be9a8c0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions axum/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
async fn fallback() {}
```

- **breaking:** It is no longer supported to `nest` twice at the same path, i.e.
`.nest("/foo", a).nest("/foo", b)` will panic. Instead use `.nest("/foo", a.merge(b))`
- **breaking:** It is no longer supported to `nest` a router and add a route at
the same path, such as `.nest("/a", _).route("/a", _)`. Instead use
`.nest("/a/", _).route("/a", _)`.
- **changed:** `Router::nest` now only accepts `Router`s, the general-purpose
`Service` nesting method has been renamed to `nest_service` ([#1368])
- **breaking:** Allow `Error: Into<Infallible>` for `Route::{layer, route_layer}` ([#924])
Expand Down

0 comments on commit be9a8c0

Please sign in to comment.