Update actix deps

This commit is contained in:
asonix 2021-03-09 20:14:42 -06:00
parent e4b6bca023
commit 2f3b893830
3 changed files with 205 additions and 815 deletions

1006
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,6 @@
[package]
name = "pict-rs-proxy"
version = "0.3.0-alpha.1"
version = "0.3.0-alpha.2"
authors = ["asonix <asonix@asonix.dog>"]
license = "AGPL-3.0"
readme = "README.md"
@ -12,10 +12,10 @@ build = "src/build.rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
actix-rt = "2.0.2"
actix-web = { version = "4.0.0-beta.3", default-features = false, features = ["compress"] }
actix-rt = "2.1.0"
actix-web = { version = "4.0.0-beta.4", default-features = false, features = ["compress"] }
anyhow = "1.0"
awc = "2.0.0"
awc = { version = "3.0.0-beta.3", default-features = false, features = ["compress"] }
dotenv = "0.15.0"
env_logger = "0.8"
futures = "0.3"

View file

@ -1,6 +1,5 @@
use actix_web::{
body::BodyStream,
client::Client,
dev::HttpResponseBuilder,
http::{
header::{CacheControl, CacheDirective, ContentType, LastModified, LOCATION},
@ -9,6 +8,7 @@ use actix_web::{
middleware::Logger,
web, App, HttpRequest, HttpResponse, HttpServer, ResponseError,
};
use awc::Client;
use once_cell::sync::Lazy;
use std::{
io::Cursor,
@ -247,10 +247,10 @@ enum Error {
Io(#[from] std::io::Error),
#[error("{0}")]
SendRequest(#[from] actix_web::client::SendRequestError),
SendRequest(#[from] awc::error::SendRequestError),
#[error("{0}")]
JsonPayload(#[from] actix_web::client::JsonPayloadError),
JsonPayload(#[from] awc::error::JsonPayloadError),
#[error("Failed to minify html: {0}")]
Minify(String),