1
0
mirror of https://github.com/actix/examples synced 2024-11-30 17:14:35 +01:00

use new actix-rt

This commit is contained in:
Nikolay Kim 2019-03-06 10:29:01 -08:00
parent 10731e43c6
commit 80615b8579
4 changed files with 4 additions and 6 deletions

View File

@ -6,7 +6,7 @@ workspace = "../"
edition = "2018" edition = "2018"
[dependencies] [dependencies]
actix-rt = "0.1" actix-rt = "0.2"
actix-web = { git="https://github.com/actix/actix-web.git", branch = "1.0" } actix-web = { git="https://github.com/actix/actix-web.git", branch = "1.0" }
actix-session = { git="https://github.com/actix/actix-web.git", branch = "1.0" } actix-session = { git="https://github.com/actix/actix-web.git", branch = "1.0" }
actix-staticfiles = { git="https://github.com/actix/actix-web.git", branch = "1.0" } actix-staticfiles = { git="https://github.com/actix/actix-web.git", branch = "1.0" }

View File

@ -138,6 +138,5 @@ fn main() -> io::Result<()> {
.start(); .start();
println!("Starting http server: 127.0.0.1:8080"); println!("Starting http server: 127.0.0.1:8080");
let _ = sys.run(); sys.run()
Ok(())
} }

View File

@ -6,7 +6,7 @@ edition = "2018"
workspace = "../" workspace = "../"
[dependencies] [dependencies]
actix-rt = "0.1" actix-rt = "0.2"
actix-web = { git="https://github.com/actix/actix-web.git", branch = "1.0" } actix-web = { git="https://github.com/actix/actix-web.git", branch = "1.0" }
futures = "0.1" futures = "0.1"

View File

@ -53,6 +53,5 @@ fn main() -> io::Result<()> {
.bind("127.0.0.1:8080")? .bind("127.0.0.1:8080")?
.start(); .start();
let _ = sys.run(); sys.run()
Ok(())
} }