2173: chore(all): replace chrono with time r=irevoire a=irevoire

Chrono has been unmaintained for a few month now and there is a CVE on it.

Also I updated all the error messages related to the API key as you can see here: https://github.com/meilisearch/specifications/pull/114

fix #2172

Co-authored-by: Irevoire <tamo@meilisearch.com>
This commit is contained in:
bors[bot]
2022-02-17 14:12:23 +00:00
committed by GitHub
33 changed files with 369 additions and 226 deletions

72
Cargo.lock generated
View File

@ -300,6 +300,12 @@ version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c5d78ce20460b82d3fa150275ed9d55e21064fc7951177baacf86a145c4a4b1f"
[[package]]
name = "arrayvec"
version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b"
[[package]]
name = "as-slice"
version = "0.1.5"
@ -647,7 +653,6 @@ dependencies = [
"libc",
"num-integer",
"num-traits",
"serde",
"time 0.1.44",
"winapi",
]
@ -989,9 +994,9 @@ dependencies = [
[[package]]
name = "filter-parser"
version = "0.1.0"
source = "git+https://github.com/meilisearch/milli.git?tag=v0.22.1#ea15ad6c34492b32eb7ac06e69de02b6dc70a707"
source = "git+https://github.com/meilisearch/milli.git?tag=v0.22.2#f2984f66e64838d51f5cce412693fa411ee3f2d4"
dependencies = [
"nom",
"nom 7.1.0",
"nom_locate",
]
@ -1479,6 +1484,15 @@ version = "2.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "68f2d64f2edebec4ce84ad108148e67e1064789bee435edc5b60ad398714a3a9"
[[package]]
name = "iso8601-duration"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "60b51dd97fa24074214b9eb14da518957573f4dec3189112610ae1ccec9ac464"
dependencies = [
"nom 5.1.2",
]
[[package]]
name = "itertools"
version = "0.10.3"
@ -1568,6 +1582,19 @@ dependencies = [
"fst",
]
[[package]]
name = "lexical-core"
version = "0.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6607c62aa161d23d17a9072cc5da0be67cdfc89d3afb1e8d9c842bebc2525ffe"
dependencies = [
"arrayvec",
"bitflags",
"cfg-if 1.0.0",
"ryu",
"static_assertions",
]
[[package]]
name = "libc"
version = "0.2.114"
@ -1688,7 +1715,6 @@ checksum = "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f"
name = "meilisearch-auth"
version = "0.26.0"
dependencies = [
"chrono",
"enum-iterator",
"heed",
"meilisearch-error",
@ -1697,6 +1723,7 @@ dependencies = [
"serde_json",
"sha2",
"thiserror",
"time 0.3.7",
]
[[package]]
@ -1727,7 +1754,6 @@ dependencies = [
"byte-unit",
"bytes",
"cargo_toml",
"chrono",
"clap",
"crossbeam-channel",
"either",
@ -1740,6 +1766,7 @@ dependencies = [
"hex",
"http",
"indexmap",
"iso8601-duration",
"itertools",
"jsonwebtoken",
"log",
@ -1775,6 +1802,7 @@ dependencies = [
"tempfile",
"thiserror",
"tikv-jemallocator",
"time 0.3.7",
"tokio",
"tokio-stream",
"urlencoding",
@ -1796,7 +1824,6 @@ dependencies = [
"atomic_refcell",
"byte-unit",
"bytes",
"chrono",
"clap",
"crossbeam-channel",
"csv",
@ -1840,6 +1867,7 @@ dependencies = [
"tar",
"tempfile",
"thiserror",
"time 0.3.7",
"tokio",
"uuid",
"walkdir",
@ -1888,14 +1916,13 @@ dependencies = [
[[package]]
name = "milli"
version = "0.22.1"
source = "git+https://github.com/meilisearch/milli.git?tag=v0.22.1#ea15ad6c34492b32eb7ac06e69de02b6dc70a707"
version = "0.23.0"
source = "git+https://github.com/meilisearch/milli.git?tag=v0.22.2#f2984f66e64838d51f5cce412693fa411ee3f2d4"
dependencies = [
"bimap",
"bincode",
"bstr",
"byteorder",
"chrono",
"concat-arrays",
"crossbeam-channel",
"csv",
@ -1927,6 +1954,7 @@ dependencies = [
"smallstr",
"smallvec",
"tempfile",
"time 0.3.7",
"uuid",
]
@ -2029,6 +2057,17 @@ name = "nelson"
version = "0.1.0"
source = "git+https://github.com/MarinPostma/nelson.git?rev=675f13885548fb415ead8fbb447e9e6d9314000a#675f13885548fb415ead8fbb447e9e6d9314000a"
[[package]]
name = "nom"
version = "5.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ffb4262d26ed83a1c0a33a38fe2bb15797329c85770da05e6b828ddb782627af"
dependencies = [
"lexical-core",
"memchr",
"version_check",
]
[[package]]
name = "nom"
version = "7.1.0"
@ -2048,7 +2087,7 @@ checksum = "37794436ca3029a3089e0b95d42da1f0b565ad271e4d3bb4bad0c7bb70b10605"
dependencies = [
"bytecount",
"memchr",
"nom",
"nom 7.1.0",
]
[[package]]
@ -2780,16 +2819,16 @@ dependencies = [
[[package]]
name = "segment"
version = "0.1.2"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9bdcc286fff0e7c5ccd46c06a301c7a8a848b06acedc6983707bd311eb358002"
checksum = "5c14967a911a216177366bac6dfa1209b597e311a32360431c63526e27b814fb"
dependencies = [
"async-trait",
"chrono",
"reqwest",
"serde",
"serde_json",
"thiserror",
"time 0.3.7",
]
[[package]]
@ -2976,6 +3015,12 @@ dependencies = [
"path-slash",
]
[[package]]
name = "static_assertions"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
[[package]]
name = "strsim"
version = "0.10.0"
@ -3147,6 +3192,7 @@ dependencies = [
"itoa 1.0.1",
"libc",
"num_threads",
"serde",
"time-macros",
]