From 46e6d23dd2b5bb15410f46464fd9cfa3b5ca2a00 Mon Sep 17 00:00:00 2001 From: Kerollmops Date: Mon, 14 Mar 2022 16:06:28 +0100 Subject: [PATCH] Remove the zstd dependency comming from actix-web/http --- Cargo.lock | 30 ------------------------------ meilisearch-http/Cargo.toml | 2 +- 2 files changed, 1 insertion(+), 31 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8092ef34b..743db1a55 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -69,7 +69,6 @@ dependencies = [ "rand", "sha-1 0.10.0", "smallvec", - "zstd", ] [[package]] @@ -3999,32 +3998,3 @@ dependencies = [ "thiserror", "time 0.1.43", ] - -[[package]] -name = "zstd" -version = "0.10.0+zstd.1.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b1365becbe415f3f0fcd024e2f7b45bacfb5bdd055f0dc113571394114e7bdd" -dependencies = [ - "zstd-safe", -] - -[[package]] -name = "zstd-safe" -version = "4.1.4+zstd.1.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f7cd17c9af1a4d6c24beb1cc54b17e2ef7b593dc92f19e9d9acad8b182bbaee" -dependencies = [ - "libc", - "zstd-sys", -] - -[[package]] -name = "zstd-sys" -version = "1.6.3+zstd.1.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc49afa5c8d634e75761feda8c592051e7eeb4683ba827211eb0d731d3402ea8" -dependencies = [ - "cc", - "libc", -] diff --git a/meilisearch-http/Cargo.toml b/meilisearch-http/Cargo.toml index f439d47e7..608c3d4c8 100644 --- a/meilisearch-http/Cargo.toml +++ b/meilisearch-http/Cargo.toml @@ -23,7 +23,7 @@ zip = { version = "0.5.13", optional = true } [dependencies] actix-cors = "0.6" -actix-web = { version = "4", features = ["rustls"] } +actix-web = { version = "4", default-features = false, features = ["macros", "compress-brotli", "compress-gzip", "cookies", "rustls"] } actix-web-static-files = { git = "https://github.com/kilork/actix-web-static-files.git", rev = "2d3b6160", optional = true } anyhow = { version = "1.0.43", features = ["backtrace"] } async-stream = "0.3.2"