mirror of
https://github.com/LukeMathWalker/zero-to-production.git
synced 2024-12-04 15:16:31 +00:00
Update to use latest versions (with tokio 1 support).
This commit is contained in:
parent
7a6a5c90ae
commit
a86170188a
3 changed files with 387 additions and 558 deletions
933
Cargo.lock
generated
933
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
10
Cargo.toml
10
Cargo.toml
|
@ -13,9 +13,11 @@ path = "src/main.rs"
|
|||
name = "zero2prod"
|
||||
|
||||
[dependencies]
|
||||
actix-web = "3.0.0"
|
||||
actix-rt = "1.1.1"
|
||||
tokio = "0.2.22"
|
||||
actix-web = "=4.0.0-beta.1"
|
||||
actix-rt = "=2.0.0-beta.2"
|
||||
actix-service = "=2.0.0-beta.3"
|
||||
actix-macros = "=0.2.0-beta.1"
|
||||
tokio = "1"
|
||||
|
||||
[dev-dependencies]
|
||||
reqwest = "0.10.7"
|
||||
reqwest = "0.11"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use std::net::TcpListener;
|
||||
use zero2prod::run;
|
||||
|
||||
#[actix_rt::main]
|
||||
#[actix_web::main]
|
||||
async fn main() -> std::io::Result<()> {
|
||||
let address = TcpListener::bind("127.0.0.1:8000")?;
|
||||
run(address)?.await
|
||||
|
|
Loading…
Reference in a new issue