Use the workspace inheritance feature of rust 1.64

This commit is contained in:
Tamo 2023-02-15 13:51:07 +01:00
parent 91ce8a5e67
commit 74d1a67a99
15 changed files with 125 additions and 33 deletions

4
Cargo.lock generated
View File

@ -609,9 +609,9 @@ dependencies = [
[[package]] [[package]]
name = "cargo_toml" name = "cargo_toml"
version = "0.13.3" version = "0.14.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "497049e9477329f8f6a559972ee42e117487d01d1e8c2cc9f836ea6fa23a9e1a" checksum = "2bfbc36312494041e2cdd5f06697b7e89d4b76f42773a0b5556ac290ff22acc2"
dependencies = [ dependencies = [
"serde", "serde",
"toml", "toml",

View File

@ -16,6 +16,15 @@ members = [
"benchmarks" "benchmarks"
] ]
[workspace.package]
version = "1.0.0"
authors = ["Quentin de Quelen <quentin@dequelen.me>", "Clément Renault <clement@meilisearch.com>"]
description = "Meilisearch HTTP server"
homepage = "https://meilisearch.com"
readme = "README.md"
edition = "2021"
license = "MIT"
[profile.release] [profile.release]
codegen-units = 1 codegen-units = 1

View File

@ -1,9 +1,15 @@
[package] [package]
name = "benchmarks" name = "benchmarks"
version = "1.0.0"
edition = "2018"
publish = false publish = false
version.workspace = true
authors.workspace = true
description.workspace = true
homepage.workspace = true
readme.workspace = true
edition.workspace = true
license.workspace = true
[dependencies] [dependencies]
anyhow = "1.0.65" anyhow = "1.0.65"
csv = "1.1.6" csv = "1.1.6"

View File

@ -1,7 +1,14 @@
[package] [package]
name = "dump" name = "dump"
version = "1.0.0" publish = false
edition = "2021"
version.workspace = true
authors.workspace = true
description.workspace = true
edition.workspace = true
homepage.workspace = true
readme.workspace = true
license.workspace = true
[dependencies] [dependencies]
anyhow = "1.0.65" anyhow = "1.0.65"

View File

@ -1,7 +1,14 @@
[package] [package]
name = "file-store" name = "file-store"
version = "1.0.0" publish = false
edition = "2021"
version.workspace = true
authors.workspace = true
description.workspace = true
homepage.workspace = true
readme.workspace = true
edition.workspace = true
license.workspace = true
[dependencies] [dependencies]
tempfile = "3.3.0" tempfile = "3.3.0"

View File

@ -1,10 +1,16 @@
[package] [package]
name = "filter-parser" name = "filter-parser"
version = "1.0.0"
edition = "2021"
description = "The parser for the Meilisearch filter syntax" description = "The parser for the Meilisearch filter syntax"
publish = false publish = false
version.workspace = true
authors.workspace = true
# description.workspace = true
homepage.workspace = true
readme.workspace = true
edition.workspace = true
license.workspace = true
[dependencies] [dependencies]
nom = "7.1.1" nom = "7.1.1"
nom_locate = "4.0.0" nom_locate = "4.0.0"

View File

@ -1,11 +1,17 @@
[package] [package]
name = "flatten-serde-json" name = "flatten-serde-json"
version = "1.0.0"
edition = "2021"
description = "Flatten serde-json objects like elastic search" description = "Flatten serde-json objects like elastic search"
readme = "README.md" readme = "README.md"
publish = false publish = false
version.workspace = true
authors.workspace = true
# description.workspace = true
homepage.workspace = true
# readme.workspace = true
edition.workspace = true
license.workspace = true
[dependencies] [dependencies]
serde_json = "1.0" serde_json = "1.0"

View File

@ -1,7 +1,14 @@
[package] [package]
name = "index-scheduler" name = "index-scheduler"
version = "1.0.0" publish = false
edition = "2021"
version.workspace = true
authors.workspace = true
description.workspace = true
homepage.workspace = true
readme.workspace = true
edition.workspace = true
license.workspace = true
[dependencies] [dependencies]
anyhow = "1.0.64" anyhow = "1.0.64"

View File

@ -1,10 +1,16 @@
[package] [package]
name = "json-depth-checker" name = "json-depth-checker"
version = "1.0.0"
edition = "2021"
description = "A library that indicates if a JSON must be flattened" description = "A library that indicates if a JSON must be flattened"
publish = false publish = false
version.workspace = true
authors.workspace = true
# description.workspace = true
homepage.workspace = true
readme.workspace = true
edition.workspace = true
license.workspace = true
[dependencies] [dependencies]
serde_json = "1.0" serde_json = "1.0"

View File

@ -1,7 +1,14 @@
[package] [package]
name = "meili-snap" name = "meili-snap"
version = "1.0.0" publish = false
edition = "2021"
version.workspace = true
authors.workspace = true
description.workspace = true
homepage.workspace = true
readme.workspace = true
edition.workspace = true
license.workspace = true
[dependencies] [dependencies]
insta = { version = "^1.19.1", features = ["json", "redactions"] } insta = { version = "^1.19.1", features = ["json", "redactions"] }

View File

@ -1,7 +1,14 @@
[package] [package]
name = "meilisearch-auth" name = "meilisearch-auth"
version = "1.0.0" publish = false
edition = "2021"
version.workspace = true
authors.workspace = true
description.workspace = true
homepage.workspace = true
readme.workspace = true
edition.workspace = true
license.workspace = true
[dependencies] [dependencies]
base64 = "0.13.1" base64 = "0.13.1"

View File

@ -1,8 +1,14 @@
[package] [package]
name = "meilisearch-types" name = "meilisearch-types"
version = "1.0.0" publish = false
authors = ["marin <postma.marin@protonmail.com>"]
edition = "2021" version.workspace = true
authors.workspace = true
description.workspace = true
homepage.workspace = true
readme.workspace = true
edition.workspace = true
license.workspace = true
[dependencies] [dependencies]
actix-web = { version = "4.2.1", default-features = false } actix-web = { version = "4.2.1", default-features = false }

View File

@ -1,10 +1,14 @@
[package] [package]
authors = ["Quentin de Quelen <quentin@dequelen.me>", "Clément Renault <clement@meilisearch.com>"]
description = "Meilisearch HTTP server"
edition = "2021"
license = "MIT"
name = "meilisearch" name = "meilisearch"
version = "1.0.0" publish = false
version.workspace = true
authors.workspace = true
description.workspace = true
homepage.workspace = true
readme.workspace = true
edition.workspace = true
license.workspace = true
[dependencies] [dependencies]
actix-cors = "0.6.3" actix-cors = "0.6.3"
@ -90,7 +94,7 @@ yaup = "0.2.1"
[build-dependencies] [build-dependencies]
anyhow = { version = "1.0.65", optional = true } anyhow = { version = "1.0.65", optional = true }
cargo_toml = { version = "0.13.0", optional = true } cargo_toml = { version = "0.14.0", optional = true }
hex = { version = "0.4.3", optional = true } hex = { version = "0.4.3", optional = true }
reqwest = { version = "0.11.12", 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 }

View File

@ -1,8 +1,15 @@
[package] [package]
name = "milli" name = "milli"
version = "1.0.0"
authors = ["Kerollmops <clement@meilisearch.com>"]
edition = "2018" edition = "2018"
publish = false
version.workspace = true
authors.workspace = true
description.workspace = true
homepage.workspace = true
readme.workspace = true
# edition.workspace = true
license.workspace = true
[dependencies] [dependencies]
bimap = { version = "0.6.2", features = ["serde"] } bimap = { version = "0.6.2", features = ["serde"] }

View File

@ -1,9 +1,16 @@
[package] [package]
name = "permissive-json-pointer" name = "permissive-json-pointer"
version = "1.0.0"
edition = "2021"
description = "A permissive json pointer" description = "A permissive json pointer"
readme = "README.md" readme = "README.md"
publish = false
version.workspace = true
authors.workspace = true
# description.workspace = true
homepage.workspace = true
# readme.workspace = true
edition.workspace = true
license.workspace = true
[dependencies] [dependencies]
serde_json = "1.0" serde_json = "1.0"