tower-rs / tower

async fn(Request) -> Result<Response, Error>
https://docs.rs/tower
MIT License
3.56k stars 281 forks source link

`tower::service_fn` docs don't say that you need the `util` flag #743

Closed jjant closed 4 months ago

jjant commented 1 year ago

See the docs for it: https://docs.rs/tower/latest/tower/fn.service_fn.html. It doesn't mention that you need to enable util which is a bit confusing.

GlenDC commented 1 year ago

You’re right. I’ll have a look at this for you!

GlenDC commented 1 year ago

Hmm cannot immediately find out why. Master code is also very different doc/attribute wise compared to latest release.

GlenDC commented 12 months ago

Ok found how to do it. https://github.com/tower-rs/tower/pull/754