Skip to content

Commit ae0ba91

Browse files
committed
upgrading: note about Service is not from tower
1 parent 6154d55 commit ae0ba91

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

_stable/upgrading.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ use the [`server::conn::auto::Builder`][auto] from [`hyper-util`][].
6363

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

66+
## `Service`/`service_fn`
67+
68+
Previously, hyper depended on `tower` for the `Service` trait. Because
69+
`tower` is not yet 1.0, hyper could not publicly depend on it. So, it's
70+
`Service` trait and the helper function `service_fn` are defined in
71+
`hyper::service`.
6672

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

0 commit comments

Comments
 (0)