Use Cargo workspace dependencies

… for most external dependencies that are used from multiple workspace
crates.
This commit is contained in:
Jonas Platte
2022-10-27 13:06:28 +02:00
committed by Jonas Platte
parent 4671fa3e4d
commit d18bea570c
15 changed files with 71 additions and 59 deletions

View File

@@ -19,18 +19,18 @@ unstable-exhaustive-types = []
[dependencies]
itertools = "0.10.0"
js_int = "0.2.0"
js_int = { workspace = true }
ruma-common = { version = "0.10.5", path = "../ruma-common", features = ["events"] }
serde = { version = "1.0.118", features = ["derive"] }
serde_json = "1.0.60"
thiserror = "1.0.26"
tracing = "0.1.26"
serde = { workspace = true }
serde_json = { workspace = true }
thiserror = { workspace = true }
tracing = { workspace = true }
# dev-dependencies can't be optional, so this is a regular dependency
criterion = { version = "0.4.0", optional = true }
criterion = { workspace = true, optional = true }
[dev-dependencies]
maplit = "1.0.2"
maplit = { workspace = true }
rand = "0.8.3"
ruma-common = { version = "0.10.5", path = "../ruma-common", features = ["unstable-pdu"] }
tracing-subscriber = "0.3.3"