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:
parent
10731e43c6
commit
80615b8579
@ -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" }
|
||||||
|
@ -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(())
|
|
||||||
}
|
}
|
||||||
|
@ -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"
|
||||||
|
@ -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(())
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user