From 5f4530ce576e400698385f1ca5665ea9fc3bd5b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Wed, 10 Jul 2024 13:36:34 +0200 Subject: [PATCH] Remove more unused dependencies --- Cargo.lock | 96 ------------------------------------------ dump/Cargo.toml | 1 - file-store/Cargo.toml | 3 -- meilisearch/Cargo.toml | 6 --- milli/Cargo.toml | 1 - 5 files changed, 107 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1ce0b29c6..248916c7b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -218,18 +218,6 @@ dependencies = [ "syn 2.0.68", ] -[[package]] -name = "actix-web-static-files" -version = "4.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adf6d1ef6d7a60e084f9e0595e2a5234abda14e76c105ecf8e2d0e8800c41a1f" -dependencies = [ - "actix-web", - "derive_more", - "futures-util", - "static-files", -] - [[package]] name = "addr2line" version = "0.22.0" @@ -414,38 +402,6 @@ dependencies = [ "thiserror", ] -[[package]] -name = "assert-json-diff" -version = "2.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47e4f2b81832e72834d7518d8487a0396a28cc408186a2e8854c0f98011faf12" -dependencies = [ - "serde", - "serde_json", -] - -[[package]] -name = "async-stream" -version = "0.3.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd56dd203fef61ac097dd65721a419ddccb106b2d2b70ba60a6b529f03961a51" -dependencies = [ - "async-stream-impl", - "futures-core", - "pin-project-lite", -] - -[[package]] -name = "async-stream-impl" -version = "0.3.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16e62a023e7c117e27523144c5d2459f4397fcc3cab0085af8e2224f643a0193" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.68", -] - [[package]] name = "async-trait" version = "0.1.81" @@ -1666,7 +1622,6 @@ dependencies = [ "http 1.1.0", "maplit", "meili-snap", - "meilisearch-auth", "meilisearch-types", "once_cell", "regex", @@ -1869,34 +1824,10 @@ version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9fc0510504f03c51ada170672ac806f1f105a88aa97a5281117e1ddc3368e51a" -[[package]] -name = "faux" -version = "0.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14b55a7f424e532314115b5cdc6d9711b15ac453bfe0dcfa212baebc5efacd60" -dependencies = [ - "faux_macros", - "paste", -] - -[[package]] -name = "faux_macros" -version = "0.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d15473d7f83b54a44826907af16ae5727eaacaf6e53b51474016d3efd9aa35d5" -dependencies = [ - "darling 0.20.9", - "proc-macro2", - "quote", - "syn 2.0.68", - "uuid", -] - [[package]] name = "file-store" version = "1.9.0" dependencies = [ - "faux", "tempfile", "thiserror", "tracing", @@ -3432,10 +3363,7 @@ dependencies = [ "actix-rt", "actix-utils", "actix-web", - "actix-web-static-files", "anyhow", - "assert-json-diff", - "async-stream", "async-trait", "brotli", "bstr", @@ -3500,7 +3428,6 @@ dependencies = [ "thiserror", "time", "tokio", - "tokio-stream", "toml", "tracing", "tracing-actix-web", @@ -3509,7 +3436,6 @@ dependencies = [ "url", "urlencoding", "uuid", - "walkdir", "yaup", "zip 2.1.3", ] @@ -3636,7 +3562,6 @@ dependencies = [ "once_cell", "ordered-float", "rand", - "rand_pcg", "rayon", "roaring", "rstar", @@ -4450,16 +4375,6 @@ dependencies = [ "rand", ] -[[package]] -name = "rand_pcg" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59cad018caf63deb318e5a4586d99a24424a364f40f1e5778c29aca23f4fc73e" -dependencies = [ - "rand_core", - "serde", -] - [[package]] name = "raw-cpuid" version = "10.7.0" @@ -5539,17 +5454,6 @@ dependencies = [ "tokio", ] -[[package]] -name = "tokio-stream" -version = "0.1.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "267ac89e0bec6e691e5813911606935d77c476ff49024f98abcea3e7b15e37af" -dependencies = [ - "futures-core", - "pin-project-lite", - "tokio", -] - [[package]] name = "tokio-util" version = "0.7.11" diff --git a/dump/Cargo.toml b/dump/Cargo.toml index 6437931cf..8c87f9a35 100644 --- a/dump/Cargo.toml +++ b/dump/Cargo.toml @@ -14,7 +14,6 @@ license.workspace = true anyhow = "1.0.86" flate2 = "1.0.30" http = "1.1.0" -meilisearch-auth = { path = "../meilisearch-auth" } meilisearch-types = { path = "../meilisearch-types" } once_cell = "1.19.0" regex = "1.10.5" diff --git a/file-store/Cargo.toml b/file-store/Cargo.toml index c0349d43a..6e848922b 100644 --- a/file-store/Cargo.toml +++ b/file-store/Cargo.toml @@ -15,6 +15,3 @@ tempfile = "3.10.1" thiserror = "1.0.61" tracing = "0.1.40" uuid = { version = "1.9.1", features = ["serde", "v4"] } - -[dev-dependencies] -faux = "0.1.10" diff --git a/meilisearch/Cargo.toml b/meilisearch/Cargo.toml index 09b397929..0a23dc56b 100644 --- a/meilisearch/Cargo.toml +++ b/meilisearch/Cargo.toml @@ -27,9 +27,7 @@ actix-web = { version = "4.8.0", default-features = false, features = [ "cookies", "rustls-0_21", ] } -actix-web-static-files = { version = "4.0.1", optional = true } anyhow = { version = "1.0.86", features = ["backtrace"] } -async-stream = "0.3.5" async-trait = "0.1.81" bstr = "1.9.1" byte-unit = { version = "5.1.4", default-features = false, features = [ @@ -94,10 +92,8 @@ time = { version = "0.3.36", features = [ "macros", ] } tokio = { version = "1.38.0", features = ["full"] } -tokio-stream = "0.1.15" toml = "0.8.14" uuid = { version = "1.9.1", features = ["serde", "v4"] } -walkdir = "2.5.0" serde_urlencoded = "0.7.1" termcolor = "1.4.1" url = { version = "2.5.2", features = ["serde"] } @@ -109,7 +105,6 @@ build-info = { version = "1.7.0", path = "../build-info" } [dev-dependencies] actix-rt = "2.10.0" -assert-json-diff = "2.0.2" brotli = "6.0.0" insta = "1.39.0" manifest-dir-macros = "0.1.18" @@ -136,7 +131,6 @@ zip = { version = "2.1.3", optional = true } default = ["analytics", "meilisearch-types/all-tokenizations", "mini-dashboard"] analytics = ["segment"] mini-dashboard = [ - "actix-web-static-files", "static-files", "anyhow", "cargo_toml", diff --git a/milli/Cargo.toml b/milli/Cargo.toml index d92a0851e..29a0e481b 100644 --- a/milli/Cargo.toml +++ b/milli/Cargo.toml @@ -42,7 +42,6 @@ memmap2 = "0.9.4" obkv = "0.2.2" once_cell = "1.19.0" ordered-float = "4.2.1" -rand_pcg = { version = "0.3.1", features = ["serde1"] } rayon = "1.10.0" roaring = { version = "0.10.6", features = ["serde"] } rstar = { version = "0.12.0", features = ["serde"] }