async
just Pin<Future<T>>
?
impl Future
async fn foo() -> Result
translates to fn foo() -> impl Future<Output = Result>
with no boxing involved, and the concrete type being inferred by the compiler (and which is also some autogenerated private type)
bind_server
(source) to see (a) if it would be enough, (b) how it's dont internally.
Cargo.lock
, should not in fix / expose feature from hyper
? I have no rust
skill but hyper
is in 0.14
so we need to fix version in Cargo.toml
gotham::hyper
and don't depend on your own version of hyper
gotham_middleware_diesel
table, but I guess I'd expect someone to have done so already. :-) (In the absence of a pre-existing one the MemoryBackend
will realistically be fine for my one-off application for a child's distributed birthday party)
hyper
in your Cargo.toml
file if you use gotham
0.5.0
release since I gave up on gotham