Upgrade dependencies

Except:
- clap stays on 3.0 because it is more complicated to upgrade
- enum_iterator goes up to 1.1.2 instead of 1.2 because of the vergen
dependency
This commit is contained in:
Loïc Lecrenier 2022-10-04 12:04:16 +02:00
parent 9da34dc55c
commit a2c91a87fe
8 changed files with 387 additions and 341 deletions

558
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -4,14 +4,14 @@ version = "0.29.0"
edition = "2021" edition = "2021"
[dependencies] [dependencies]
enum-iterator = "0.7.0" enum-iterator = "1.1.2"
hmac = "0.12.1" hmac = "0.12.1"
meilisearch-types = { path = "../meilisearch-types" } meilisearch-types = { path = "../meilisearch-types" }
milli = { git = "https://github.com/meilisearch/milli.git", tag = "v0.33.4", default-features = false } milli = { git = "https://github.com/meilisearch/milli.git", tag = "v0.33.4", default-features = false }
rand = "0.8.4" rand = "0.8.5"
serde = { version = "1.0.136", features = ["derive"] } serde = { version = "1.0.145", features = ["derive"] }
serde_json = { version = "1.0.85", features = ["preserve_order"] } serde_json = { version = "1.0.85", features = ["preserve_order"] }
sha2 = "0.10.2" sha2 = "0.10.6"
thiserror = "1.0.30" thiserror = "1.0.37"
time = { version = "0.3.7", features = ["serde-well-known", "formatting", "parsing", "macros"] } time = { version = "0.3.15", features = ["serde-well-known", "formatting", "parsing", "macros"] }
uuid = { version = "1.1.2", features = ["serde", "v4"] } uuid = { version = "1.1.2", features = ["serde", "v4"] }

View File

@ -1,8 +1,9 @@
use enum_iterator::IntoEnumIterator;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use std::hash::Hash; use std::hash::Hash;
#[derive(IntoEnumIterator, Copy, Clone, Serialize, Deserialize, Debug, Eq, PartialEq, Hash)] #[derive(
enum_iterator::Sequence, Copy, Clone, Serialize, Deserialize, Debug, Eq, PartialEq, Hash,
)]
#[repr(u8)] #[repr(u8)]
pub enum Action { pub enum Action {
#[serde(rename = "*")] #[serde(rename = "*")]

View File

@ -9,7 +9,6 @@ use std::path::Path;
use std::str; use std::str;
use std::sync::Arc; use std::sync::Arc;
use enum_iterator::IntoEnumIterator;
use hmac::{Hmac, Mac}; use hmac::{Hmac, Mac};
use meilisearch_types::star_or::StarOr; use meilisearch_types::star_or::StarOr;
use milli::heed::types::{ByteSlice, DecodeIgnore, SerdeJson}; use milli::heed::types::{ByteSlice, DecodeIgnore, SerdeJson};
@ -92,7 +91,7 @@ impl HeedAuthStore {
let mut actions = HashSet::new(); let mut actions = HashSet::new();
for action in &key.actions { for action in &key.actions {
match action { match action {
Action::All => actions.extend(Action::into_enum_iter()), Action::All => actions.extend(enum_iterator::all::<Action>()),
Action::DocumentsAll => { Action::DocumentsAll => {
actions.extend( actions.extend(
[ [

View File

@ -11,39 +11,39 @@ name = "meilisearch"
path = "src/main.rs" path = "src/main.rs"
[build-dependencies] [build-dependencies]
anyhow = { version = "1.0.62", optional = true } anyhow = { version = "1.0.65", optional = true }
cargo_toml = { version = "0.11.4", optional = true } cargo_toml = { version = "0.12.4", optional = true }
hex = { version = "0.4.3", optional = true } hex = { version = "0.4.3", optional = true }
reqwest = { version = "0.11.9", features = ["blocking", "rustls-tls"], default-features = false, optional = true } reqwest = { version = "0.11.12", features = ["blocking", "rustls-tls"], default-features = false, optional = true }
sha-1 = { version = "0.10.0", optional = true } sha-1 = { version = "0.10.0", optional = true }
static-files = { version = "0.2.3", optional = true } static-files = { version = "0.2.3", optional = true }
tempfile = { version = "3.3.0", optional = true } tempfile = { version = "3.3.0", optional = true }
vergen = { version = "7.0.0", default-features = false, features = ["git"] } vergen = { version = "7.4.2", default-features = false, features = ["git"] }
zip = { version = "0.5.13", optional = true } zip = { version = "0.6.2", optional = true }
[dependencies] [dependencies]
actix-cors = "0.6.1" actix-cors = "0.6.3"
actix-web = { version = "4.0.1", default-features = false, features = ["macros", "compress-brotli", "compress-gzip", "cookies", "rustls"] } actix-web = { version = "4.2.1", 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 } actix-web-static-files = { git = "https://github.com/kilork/actix-web-static-files.git", rev = "2d3b6160", optional = true }
anyhow = { version = "1.0.62", features = ["backtrace"] } anyhow = { version = "1.0.65", features = ["backtrace"] }
async-stream = "0.3.3" async-stream = "0.3.3"
async-trait = "0.1.52" async-trait = "0.1.57"
bstr = "0.2.17" bstr = "1.0.1"
byte-unit = { version = "4.0.14", default-features = false, features = ["std", "serde"] } byte-unit = { version = "4.0.14", default-features = false, features = ["std", "serde"] }
bytes = "1.1.0" bytes = "1.2.1"
clap = { version = "3.1.6", features = ["derive", "env"] } clap = { version = "3.1.6", features = ["derive", "env"] }
crossbeam-channel = "0.5.2" crossbeam-channel = "0.5.6"
either = "1.6.1" either = "1.8.0"
env_logger = "0.9.0" env_logger = "0.9.1"
flate2 = "1.0.22" flate2 = "1.0.24"
fst = "0.4.7" fst = "0.4.7"
futures = "0.3.21" futures = "0.3.24"
futures-util = "0.3.21" futures-util = "0.3.24"
http = "0.2.6" http = "0.2.8"
indexmap = { version = "1.8.0", features = ["serde-1"] } indexmap = { version = "1.9.1", features = ["serde-1"] }
itertools = "0.10.3" itertools = "0.10.5"
jsonwebtoken = "8.0.1" jsonwebtoken = "8.1.1"
log = "0.4.14" log = "0.4.17"
meilisearch-auth = { path = "../meilisearch-auth" } meilisearch-auth = { path = "../meilisearch-auth" }
meilisearch-types = { path = "../meilisearch-types" } meilisearch-types = { path = "../meilisearch-types" }
meilisearch-lib = { path = "../meilisearch-lib", default-features = false } meilisearch-lib = { path = "../meilisearch-lib", default-features = false }
@ -51,44 +51,44 @@ mimalloc = { version = "0.1.29", default-features = false }
mime = "0.3.16" mime = "0.3.16"
num_cpus = "1.13.1" num_cpus = "1.13.1"
obkv = "0.2.0" obkv = "0.2.0"
once_cell = "1.10.0" once_cell = "1.15.0"
parking_lot = "0.12.0" parking_lot = "0.12.1"
pin-project-lite = "0.2.8" pin-project-lite = "0.2.9"
platform-dirs = "0.3.0" platform-dirs = "0.3.0"
rand = "0.8.5" rand = "0.8.5"
rayon = "1.5.1" rayon = "1.5.3"
regex = "1.5.5" regex = "1.6.0"
reqwest = { version = "0.11.4", features = ["rustls-tls", "json"], default-features = false } reqwest = { version = "0.11.12", features = ["rustls-tls", "json"], default-features = false }
rustls = "0.20.4" rustls = "0.20.6"
rustls-pemfile = "0.3.0" rustls-pemfile = "1.0.1"
segment = { version = "0.2.0", optional = true } segment = { version = "0.2.1", optional = true }
serde = { version = "1.0.136", features = ["derive"] } serde = { version = "1.0.145", features = ["derive"] }
serde-cs = "0.2.3" serde-cs = "0.2.4"
serde_json = { version = "1.0.85", features = ["preserve_order"] } serde_json = { version = "1.0.85", features = ["preserve_order"] }
sha2 = "0.10.2" sha2 = "0.10.6"
siphasher = "0.3.10" siphasher = "0.3.10"
slice-group-by = "0.3.0" slice-group-by = "0.3.0"
static-files = { version = "0.2.3", optional = true } static-files = { version = "0.2.3", optional = true }
sysinfo = "0.23.5" sysinfo = "0.26.4"
tar = "0.4.38" tar = "0.4.38"
tempfile = "3.3.0" tempfile = "3.3.0"
thiserror = "1.0.30" thiserror = "1.0.37"
time = { version = "0.3.7", features = ["serde-well-known", "formatting", "parsing", "macros"] } time = { version = "0.3.15", features = ["serde-well-known", "formatting", "parsing", "macros"] }
tokio = { version = "1.17.0", features = ["full"] } tokio = { version = "1.21.2", features = ["full"] }
tokio-stream = "0.1.8" tokio-stream = "0.1.10"
toml = "0.5.9" toml = "0.5.9"
uuid = { version = "1.1.2", features = ["serde", "v4"] } uuid = { version = "1.1.2", features = ["serde", "v4"] }
walkdir = "2.3.2" walkdir = "2.3.2"
prometheus = { version = "0.13.0", features = ["process"], optional = true } prometheus = { version = "0.13.2", features = ["process"], optional = true }
lazy_static = "1.4.0" lazy_static = "1.4.0"
[dev-dependencies] [dev-dependencies]
actix-rt = "2.7.0" actix-rt = "2.7.0"
assert-json-diff = "2.0.1" assert-json-diff = "2.0.2"
manifest-dir-macros = "0.1.14" manifest-dir-macros = "0.1.16"
maplit = "1.0.2" maplit = "1.0.2"
urlencoding = "2.1.0" urlencoding = "2.1.2"
yaup = "0.2.0" yaup = "0.2.1"
[features] [features]
default = ["analytics", "meilisearch-lib/default", "mini-dashboard"] default = ["analytics", "meilisearch-lib/default", "mini-dashboard"]

View File

@ -220,7 +220,7 @@ impl Segment {
json!({ json!({
"distribution": sys.name(), "distribution": sys.name(),
"kernel_version": kernel_version, "kernel_version": kernel_version,
"cores": sys.processors().len(), "cores": sys.cpus().len(),
"ram_size": sys.total_memory(), "ram_size": sys.total_memory(),
"disk_size": sys.disks().iter().map(|disk| disk.total_space()).max(), "disk_size": sys.disks().iter().map(|disk| disk.total_space()).max(),
"server_provider": std::env::var("MEILI_SERVER_PROVIDER").ok(), "server_provider": std::env::var("MEILI_SERVER_PROVIDER").ok(),

View File

@ -4,64 +4,64 @@ version = "0.29.0"
edition = "2021" edition = "2021"
[dependencies] [dependencies]
actix-web = { version = "4.0.1", default-features = false } actix-web = { version = "4.2.1", default-features = false }
anyhow = { version = "1.0.62", features = ["backtrace"] } anyhow = { version = "1.0.65", features = ["backtrace"] }
async-stream = "0.3.3" async-stream = "0.3.3"
async-trait = "0.1.52" async-trait = "0.1.57"
atomic_refcell = "0.1.8" atomic_refcell = "0.1.8"
byte-unit = { version = "4.0.14", default-features = false, features = ["std", "serde"] } byte-unit = { version = "4.0.14", default-features = false, features = ["std", "serde"] }
bytes = "1.1.0" bytes = "1.2.1"
clap = { version = "3.1.6", features = ["derive", "env"] } clap = { version = "3.1.6", features = ["derive", "env"] }
crossbeam-channel = "0.5.2" crossbeam-channel = "0.5.6"
csv = "1.1.6" csv = "1.1.6"
derivative = "2.2.0" derivative = "2.2.0"
either = { version = "1.6.1", features = ["serde"] } either = { version = "1.8.0", features = ["serde"] }
flate2 = "1.0.22" flate2 = "1.0.24"
fs_extra = "1.2.0" fs_extra = "1.2.0"
fst = "0.4.7" fst = "0.4.7"
futures = "0.3.21" futures = "0.3.24"
futures-util = "0.3.21" futures-util = "0.3.24"
http = "0.2.6" http = "0.2.8"
indexmap = { version = "1.8.0", features = ["serde-1"] } indexmap = { version = "1.9.1", features = ["serde-1"] }
itertools = "0.10.3" itertools = "0.10.5"
lazy_static = "1.4.0" lazy_static = "1.4.0"
log = "0.4.14" log = "0.4.17"
meilisearch-auth = { path = "../meilisearch-auth" } meilisearch-auth = { path = "../meilisearch-auth" }
meilisearch-types = { path = "../meilisearch-types" } meilisearch-types = { path = "../meilisearch-types" }
milli = { git = "https://github.com/meilisearch/milli.git", tag = "v0.33.4", default-features = false } milli = { git = "https://github.com/meilisearch/milli.git", tag = "v0.33.4", default-features = false }
mime = "0.3.16" mime = "0.3.16"
num_cpus = "1.13.1" num_cpus = "1.13.1"
obkv = "0.2.0" obkv = "0.2.0"
once_cell = "1.10.0" once_cell = "1.15.0"
page_size = "0.4.2" page_size = "0.4.2"
parking_lot = "0.12.0" parking_lot = "0.12.1"
permissive-json-pointer = { path = "../permissive-json-pointer" } permissive-json-pointer = { path = "../permissive-json-pointer" }
rand = "0.8.5" rand = "0.8.5"
rayon = "1.5.1" rayon = "1.5.3"
regex = "1.5.5" regex = "1.6.0"
reqwest = { version = "0.11.9", features = ["json", "rustls-tls"], default-features = false, optional = true } reqwest = { version = "0.11.12", features = ["json", "rustls-tls"], default-features = false, optional = true }
roaring = "0.9.0" roaring = "0.9.0"
rustls = "0.20.4" rustls = "0.20.6"
serde = { version = "1.0.136", features = ["derive"] } serde = { version = "1.0.145", features = ["derive"] }
serde_json = { version = "1.0.85", features = ["preserve_order"] } serde_json = { version = "1.0.85", features = ["preserve_order"] }
siphasher = "0.3.10" siphasher = "0.3.10"
slice-group-by = "0.3.0" slice-group-by = "0.3.0"
sysinfo = "0.23.5" sysinfo = "0.26.4"
tar = "0.4.38" tar = "0.4.38"
tempfile = "3.3.0" tempfile = "3.3.0"
thiserror = "1.0.30" thiserror = "1.0.37"
time = { version = "0.3.7", features = ["serde-well-known", "formatting", "parsing", "macros"] } time = { version = "0.3.15", features = ["serde-well-known", "formatting", "parsing", "macros"] }
tokio = { version = "1.17.0", features = ["full"] } tokio = { version = "1.21.2", features = ["full"] }
uuid = { version = "1.1.2", features = ["serde", "v4"] } uuid = { version = "1.1.2", features = ["serde", "v4"] }
walkdir = "2.3.2" walkdir = "2.3.2"
whoami = { version = "1.2.1", optional = true } whoami = { version = "1.2.3", optional = true }
[dev-dependencies] [dev-dependencies]
actix-rt = "2.7.0" actix-rt = "2.7.0"
meilisearch-types = { path = "../meilisearch-types", features = ["test-traits"] } meilisearch-types = { path = "../meilisearch-types", features = ["test-traits"] }
mockall = "0.11.0" mockall = "0.11.2"
nelson = { git = "https://github.com/meilisearch/nelson.git", rev = "675f13885548fb415ead8fbb447e9e6d9314000a"} nelson = { git = "https://github.com/meilisearch/nelson.git", rev = "675f13885548fb415ead8fbb447e9e6d9314000a"}
paste = "1.0.6" paste = "1.0.9"
proptest = "1.0.0" proptest = "1.0.0"
proptest-derive = "0.3.0" proptest-derive = "0.3.0"

View File

@ -5,11 +5,11 @@ authors = ["marin <postma.marin@protonmail.com>"]
edition = "2021" edition = "2021"
[dependencies] [dependencies]
actix-web = { version = "4.0.1", default-features = false } actix-web = { version = "4.2.1", default-features = false }
proptest = { version = "1.0.0", optional = true } proptest = { version = "1.0.0", optional = true }
proptest-derive = { version = "0.3.0", optional = true } proptest-derive = { version = "0.3.0", optional = true }
serde = { version = "1.0.136", features = ["derive"] } serde = { version = "1.0.145", features = ["derive"] }
serde_json = "1.0.79" serde_json = "1.0.85"
[features] [features]
test-traits = ["proptest", "proptest-derive"] test-traits = ["proptest", "proptest-derive"]