Skip to content

Commit

Permalink
upgrading: note about Service is not from tower
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Dec 8, 2023
1 parent 6154d55 commit ae0ba91
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions _stable/upgrading.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ use the [`server::conn::auto::Builder`][auto] from [`hyper-util`][].

The listening server acceptor can be replaced with a simple loop.

## `Service`/`service_fn`

Previously, hyper depended on `tower` for the `Service` trait. Because
`tower` is not yet 1.0, hyper could not publicly depend on it. So, it's
`Service` trait and the helper function `service_fn` are defined in
`hyper::service`.

[changelog]: https://github.com/hyperium/hyper/blob/master/CHANGELOG.md#v100-2023-11-15
[`hyper-util`]: https://crates.io/crates/hyper-util
Expand Down

0 comments on commit ae0ba91

Please sign in to comment.