mirror of
https://github.com/actix/examples
synced 2024-11-27 16:02:57 +01:00
use new actix-rt
This commit is contained in:
parent
10731e43c6
commit
80615b8579
@ -6,7 +6,7 @@ workspace = "../"
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
actix-rt = "0.1"
|
||||
actix-rt = "0.2"
|
||||
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-staticfiles = { git="https://github.com/actix/actix-web.git", branch = "1.0" }
|
||||
|
@ -138,6 +138,5 @@ fn main() -> io::Result<()> {
|
||||
.start();
|
||||
|
||||
println!("Starting http server: 127.0.0.1:8080");
|
||||
let _ = sys.run();
|
||||
Ok(())
|
||||
sys.run()
|
||||
}
|
||||
|
@ -6,7 +6,7 @@ edition = "2018"
|
||||
workspace = "../"
|
||||
|
||||
[dependencies]
|
||||
actix-rt = "0.1"
|
||||
actix-rt = "0.2"
|
||||
actix-web = { git="https://github.com/actix/actix-web.git", branch = "1.0" }
|
||||
|
||||
futures = "0.1"
|
||||
|
@ -53,6 +53,5 @@ fn main() -> io::Result<()> {
|
||||
.bind("127.0.0.1:8080")?
|
||||
.start();
|
||||
|
||||
let _ = sys.run();
|
||||
Ok(())
|
||||
sys.run()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user