Merge pull request 'Remove brotli dependency' (#97) from remove-brotli into main

Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/97
This commit is contained in:
dessalines 2020-09-14 14:12:02 +00:00
commit 3bf86e4ca0
4 changed files with 12 additions and 55 deletions

53
server/Cargo.lock generated vendored
View file

@ -139,14 +139,12 @@ dependencies = [
"actix-utils 2.0.0", "actix-utils 2.0.0",
"base64 0.12.3", "base64 0.12.3",
"bitflags 1.2.1", "bitflags 1.2.1",
"brotli2",
"bytes", "bytes",
"cookie", "cookie",
"copyless", "copyless",
"derive_more", "derive_more",
"either", "either",
"encoding_rs", "encoding_rs",
"flate2",
"futures-channel", "futures-channel",
"futures-core", "futures-core",
"futures-util", "futures-util",
@ -325,9 +323,9 @@ dependencies = [
[[package]] [[package]]
name = "actix-web" name = "actix-web"
version = "3.0.0" version = "3.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2e665de333edabd0421799822dac3e7d8a25a63bb995ae1f60cd99619d8ddda8" checksum = "cd7fc56022da91a4dc00ccae7d7bb82e539749ca36df181695f4efdf5d413b2e"
dependencies = [ dependencies = [
"actix-codec 0.3.0", "actix-codec 0.3.0",
"actix-http", "actix-http",
@ -700,26 +698,6 @@ dependencies = [
"opaque-debug 0.3.0", "opaque-debug 0.3.0",
] ]
[[package]]
name = "brotli-sys"
version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4445dea95f4c2b41cde57cc9fee236ae4dbae88d8fcbdb4750fc1bb5d86aaecd"
dependencies = [
"cc",
"libc",
]
[[package]]
name = "brotli2"
version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0cb036c3eade309815c15ddbacec5b22c4d1f3983a774ab2eac2e3e9ea85568e"
dependencies = [
"brotli-sys",
"libc",
]
[[package]] [[package]]
name = "buf-min" name = "buf-min"
version = "0.1.1" version = "0.1.1"
@ -931,15 +909,6 @@ version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8aebca1129a03dc6dc2b127edd729435bbc4a37e1d5f4d7513165089ceb02634" checksum = "8aebca1129a03dc6dc2b127edd729435bbc4a37e1d5f4d7513165089ceb02634"
[[package]]
name = "crc32fast"
version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ba125de2af0df55319f41944744ad91c71113bf74a4646efff39afe1f6842db1"
dependencies = [
"cfg-if",
]
[[package]] [[package]]
name = "crossbeam-channel" name = "crossbeam-channel"
version = "0.4.4" version = "0.4.4"
@ -1289,18 +1258,6 @@ dependencies = [
"ascii_utils", "ascii_utils",
] ]
[[package]]
name = "flate2"
version = "1.0.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "766d0e77a2c1502169d4a93ff3b8c15a71fd946cd0126309752104e5f3c46d94"
dependencies = [
"cfg-if",
"crc32fast",
"libc",
"miniz_oxide",
]
[[package]] [[package]]
name = "fnv" name = "fnv"
version = "1.0.7" version = "1.0.7"
@ -1591,12 +1548,12 @@ dependencies = [
[[package]] [[package]]
name = "http-signature-normalization-actix" name = "http-signature-normalization-actix"
version = "0.4.0-alpha.3" version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b44149de8286e9a07aeb72f4dee198530c0fb95df77f36b11138a748788f5603" checksum = "88c2cc504dd6a2af53b5f2c3dba63aa5d797359df5b64a21e2230bf78146a373"
dependencies = [ dependencies = [
"actix-http",
"actix-web", "actix-web",
"awc",
"base64 0.12.3", "base64 0.12.3",
"bytes", "bytes",
"chrono", "chrono",

10
server/Cargo.toml vendored
View file

@ -30,10 +30,10 @@ serde_json = { version = "1.0.52", features = ["preserve_order"]}
serde = { version = "1.0.105", features = ["derive"] } serde = { version = "1.0.105", features = ["derive"] }
actix = "0.10.0" actix = "0.10.0"
actix-web = { version = "3.0.0", default-features = false, features = ["rustls"] } actix-web = { version = "3.0.0", default-features = false, features = ["rustls"] }
actix-files = "0.3.0" actix-files = { version = "0.3.0", default-features = false }
actix-web-actors = "3.0.0" actix-web-actors = { version = "3.0.0", default-features = false }
actix-rt = "1.1.1" actix-rt = { version = "1.1.1", default-features = false }
awc = "2.0.0-alpha.2" awc = { version = "2.0.0", default-features = false }
log = "0.4.0" log = "0.4.0"
env_logger = "0.7.1" env_logger = "0.7.1"
rand = "0.7.3" rand = "0.7.3"
@ -46,7 +46,7 @@ url = { version = "2.1.1", features = ["serde"] }
percent-encoding = "2.1.0" percent-encoding = "2.1.0"
openssl = "0.10" openssl = "0.10"
http = "0.2.1" http = "0.2.1"
http-signature-normalization-actix = { version = "0.4.0-alpha.2", default-features = false, features = ["sha-2"] } http-signature-normalization-actix = { version = "0.4.0", default-features = false, features = ["sha-2"] }
base64 = "0.12.1" base64 = "0.12.1"
tokio = "0.2.21" tokio = "0.2.21"
futures = "0.3.5" futures = "0.3.5"

View file

@ -14,5 +14,5 @@ tokio = "0.2.21"
strum = "0.18.0" strum = "0.18.0"
strum_macros = "0.18.0" strum_macros = "0.18.0"
futures = "0.3.5" futures = "0.3.5"
actix-web = { version = "3.0.0-alpha.3", features = ["rustls"] } actix-web = { version = "3.0.0", default-features = false, features = ["rustls"] }
log = "0.4.0" log = "0.4.0"

View file

@ -25,5 +25,5 @@ comrak = "0.7"
lazy_static = "1.3.0" lazy_static = "1.3.0"
openssl = "0.10" openssl = "0.10"
url = { version = "2.1.1", features = ["serde"] } url = { version = "2.1.1", features = ["serde"] }
actix-web = "3.0.0-alpha.3" actix-web = {version = "3.0.0", default-features = false }
anyhow = "1.0.32" anyhow = "1.0.32"