Support compression

This commit is contained in:
asonix 2021-02-10 15:00:49 -06:00
parent 416396871e
commit 2a22eb8e4c
2 changed files with 3 additions and 1 deletions

2
Cargo.lock generated
View File

@ -112,11 +112,13 @@ dependencies = [
"ahash",
"base64 0.13.0",
"bitflags",
"brotli2",
"bytes 1.0.1",
"bytestring",
"cookie",
"derive_more",
"encoding_rs",
"flate2",
"futures-channel",
"futures-core",
"futures-util",

View File

@ -13,7 +13,7 @@ build = "src/build.rs"
[dependencies]
actix-rt = "2.0.2"
actix-web = { version = "4.0.0-beta.3", default-features = false }
actix-web = { version = "4.0.0-beta.3", default-features = false, features = ["compress"] }
anyhow = "1.0"
awc = "2.0.0"
dotenv = "0.15.0"