mirror of
https://github.com/LukeMathWalker/zero-to-production.git
synced 2025-03-31 07:09:38 +00:00
Update to latest tokio / actix-web / sqlx / reqwest.
This commit is contained in:
parent
384f2c5202
commit
8a4f21a94c
3 changed files with 447 additions and 783 deletions
1218
Cargo.lock
generated
1218
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
10
Cargo.toml
10
Cargo.toml
|
@ -13,14 +13,14 @@ 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.3"
|
||||
tokio = "1"
|
||||
serde = "1.0.115"
|
||||
config = { version = "0.10.1", default-features = false, features = ["yaml"] }
|
||||
sqlx = { version = "0.4.1", default-features = false, features = ["runtime-actix-rustls", "macros", "postgres", "uuid", "chrono", "migrate"] }
|
||||
sqlx = { version = "0.5.1", default-features = false, features = ["runtime-actix-rustls", "macros", "postgres", "uuid", "chrono", "migrate"] }
|
||||
uuid = { version = "0.8.1", features = ["v4"] }
|
||||
chrono = "0.4.15"
|
||||
|
||||
[dev-dependencies]
|
||||
reqwest = { version = "0.10.7", features = ["json"] }
|
||||
actix-rt = "2"
|
||||
reqwest = { version = "0.11", features = ["json"] }
|
||||
|
|
|
@ -3,7 +3,7 @@ use std::net::TcpListener;
|
|||
use zero2prod::configuration::get_configuration;
|
||||
use zero2prod::startup::run;
|
||||
|
||||
#[actix_rt::main]
|
||||
#[actix_web::main]
|
||||
async fn main() -> std::io::Result<()> {
|
||||
let configuration = get_configuration().expect("Failed to read configuration.");
|
||||
let connection_pool = PgPool::connect(&configuration.database.connection_string())
|
||||
|
|
Loading…
Reference in a new issue