miketang84 / sapper

A lightweight web framework built on hyper, implemented in Rust language.
MIT License
617 stars 46 forks source link

Add Rust 1.39 async/await feature to sapper? #31

Open tarvos21 opened 4 years ago

tarvos21 commented 4 years ago

This week, Rust 1.39 release has the async/await feature, when it will be added to the Sapper web server?

miketang84 commented 4 years ago

Sure! I am waiting the new http server crate based on new async-std.

kalxd commented 3 years ago

@daogangtang

我对比了hyper 0.10.16hyper 0.13.9,发现旧版的Handler trait已经被移除了,官网上的教程都是写异步函数。

看来我们需要自己定义类似Handler这样的trait?

想问问你有什么想法、思路?

miketang84 commented 3 years ago

I am constructing superpoll and porting hyper to it, and then I will update sapper to this new hyper branch, but that shall be not soon.

https://github.com/daogangtang/superpoll https://github.com/daogangtang/hyper