mirror of
https://github.com/actix/examples
synced 2025-06-28 18:00:37 +02:00
update deps
This commit is contained in:
@ -13,7 +13,7 @@ env_logger = "0.7"
|
||||
yarte = { git = "https://github.com/botika/yarte", features = ["with-actix-web"] }
|
||||
|
||||
actix-rt = "1.0"
|
||||
actix-web = "2.0.0-rc"
|
||||
actix-web = "2.0.0"
|
||||
|
||||
[build-dependencies]
|
||||
yarte = { git = "https://github.com/botika/yarte", features = ["with-actix-web"] }
|
||||
|
@ -22,7 +22,7 @@ async fn main() -> std::io::Result<()> {
|
||||
// start http server
|
||||
HttpServer::new(move || App::new().wrap(Logger::default()).service(index))
|
||||
.bind("127.0.0.1:8080")?
|
||||
.start()
|
||||
.run()
|
||||
.await
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user