Browse Source

actix fixes (#8322)

ecruz-te 2 years ago
parent
commit
089b1dde2a

File diff suppressed because it is too large
+ 338 - 150
frameworks/Rust/actix/Cargo.lock


+ 4 - 3
frameworks/Rust/actix/Cargo.toml

@@ -29,9 +29,9 @@ path = "src/main_pg_deadpool.rs"
 
 
 [dependencies]
 [dependencies]
 anyhow = "1"
 anyhow = "1"
-actix = "0.12"
-actix-web = { version = "4.0.0-rc.3", default-features = false, features = ["macros"] }
-actix-http = { version = "3.0.0-rc.2", default-features = false }
+actix = "0.13"
+actix-web = "4.3.1"
+actix-http = "3.3.1"
 actix-rt = "2"
 actix-rt = "2"
 actix-codec = "0.4"
 actix-codec = "0.4"
 actix-server = "2"
 actix-server = "2"
@@ -52,6 +52,7 @@ simd-json = "0.4"
 simd-json-derive = "0.2"
 simd-json-derive = "0.2"
 snmalloc-rs = "0.2.6"
 snmalloc-rs = "0.2.6"
 tokio = { version = "1", features = ["full"] }
 tokio = { version = "1", features = ["full"] }
+tokio-util = "0.7.8"
 tokio-postgres = "0.7.5"
 tokio-postgres = "0.7.5"
 deadpool-postgres = "0.10.1"
 deadpool-postgres = "0.10.1"
 mongodb = "2.2.0"
 mongodb = "2.2.0"

+ 2 - 1
frameworks/Rust/actix/src/main_server.rs

@@ -6,8 +6,9 @@ use std::io;
 use std::pin::Pin;
 use std::pin::Pin;
 use std::task::{Context, Poll};
 use std::task::{Context, Poll};
 
 
-use actix_codec::{AsyncWrite, Decoder};
+use actix_codec::AsyncWrite;
 use actix_http::{h1, Request};
 use actix_http::{h1, Request};
+use tokio_util::codec::Decoder;
 use actix_rt::net::TcpStream;
 use actix_rt::net::TcpStream;
 use actix_server::Server;
 use actix_server::Server;
 use actix_service::fn_service;
 use actix_service::fn_service;

Some files were not shown because too many files changed in this diff