tower-rs / tower

async fn(Request) -> Result<Response, Error>

Home Page:https://docs.rs/tower

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

jjant opened this issue · comments

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.

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

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

Ok found how to do it.
#754