chore: use cargo workspace dependencies
MODIFY
Cargo.lock
Cargo.lock
@@ -408,13 +408,14 @@ dependencies = [
[[package]]
name = "dashmap"
-version = "5.3.4"
+version = "5.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3495912c9c1ccf2e18976439f4443f3fee0fd61f424ff99fde6a66b15ecb448f"
+checksum = "907076dfda823b0b36d2a1bb5f90c96660a5bbcd7729e10727f07858f22c4edc"
dependencies = [
"cfg-if",
"hashbrown",
"lock_api",
+ "once_cell",
"parking_lot_core 0.9.3",
]
@@ -946,9 +947,9 @@ checksum = "0717cef1bc8b636c6e1c1bbdefc09e6322da8a9321966e8928ef80d20f7f770f"
[[package]]
name = "lock_api"
-version = "0.4.7"
+version = "0.4.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "327fa5b6a6940e4699ec49a9beae1ea4845c6bab9314e4f84ac68742139d8c53"
+checksum = "435011366fe56583b16cf956f9df0095b405b82d76425bc8981c0e22e60ec4df"
dependencies = [
"autocfg",
"scopeguard",

MODIFY
Cargo.toml
Cargo.toml
@@ -15,3 +15,11 @@ members = [
[profile.release-with-debug]
inherits = "release"
debug = true
+
+[workspace.dependencies]
+indexmap = "1.9.1"
+tracing = { version = "0.1.31", default-features = false, features = ["std"] }
+dashmap = "5.4.0"
+rustc-hash = "1.1.0"
+countme = "3.0.1"
+tokio = { version = "1.15.0" }
\ No newline at end of file

MODIFY
crates/rome_analyze/Cargo.toml
crates/rome_analyze/Cargo.toml
@@ -14,7 +14,7 @@ rome_control_flow = { path = "../rome_control_flow" }
rome_console = { path = "../rome_console" }
rome_diagnostics = { path = "../rome_diagnostics" }
bitflags = "1.3.2"
-rustc-hash = "1.1.0"
+rustc-hash = { workspace = true }
serde = { version = "1.0.136", features = ["derive"], optional = true }
serde_json = { version = "1.0.85", features = ["raw_value"]}
schemars = { version = "0.8.10", optional = true }

MODIFY
crates/rome_cli/Cargo.toml
crates/rome_cli/Cargo.toml
@@ -21,7 +21,7 @@ rome_console = { path = "../rome_console" }
rome_text_edit = { path = "../rome_text_edit" }
rome_lsp = { path = "../rome_lsp" }
pico-args = { version ="0.5.0", features=["eq-separator"] }
-tracing = { version = "0.1.31", default-features = false, features = ["std"] }
+tracing = { workspace = true }
tracing-tree = "0.2.0"
tracing-subscriber = { version = "0.3.6", features = ["env-filter"] }
tracing-appender = "0.2"
@@ -32,13 +32,13 @@ thiserror = "1.0.30"
rayon = "1.5.1"
serde = { version = "1.0.133", features = ["derive"] }
serde_json = { version = "1.0.74" }
-tokio = { version = "1.15.0", features = ["io-std", "io-util", "net", "time", "rt", "rt-multi-thread", "macros"] }
+tokio = { workspace = true, features = ["io-std", "io-util", "net", "time", "rt", "rt-multi-thread", "macros"] }
anyhow = "1.0.52"
-dashmap = "5.2.0"
+dashmap = { workspace = true }
[target.'cfg(unix)'.dependencies]
libc = "0.2.127"
-tokio = { version = "1.15.0", features = ["process"] }
+tokio = { workspace = true, features = ["process"] }
[target.'cfg(windows)'.dependencies]
mimalloc = "0.1.29"
@@ -48,4 +48,4 @@ tikv-jemallocator = "0.5.0"
[dev-dependencies]
insta = "1.18.2"
-tokio = { version = "1.15.0", features = ["io-util"] }
+tokio = { workspace = true, features = ["io-util"] }

MODIFY
crates/rome_formatter/Cargo.toml
crates/rome_formatter/Cargo.toml
@@ -10,13 +10,13 @@ license = "MIT"
[dependencies]
rome_rowan = { path = "../rome_rowan" }
-tracing = { version = "0.1.31", default-features = false, features = ["std"] }
+tracing = { workspace = true }
serde = { version = "1.0.136", features = ["derive"], optional = true }
cfg-if = "1.0.0"
schemars = { version = "0.8.10", optional = true }
-rustc-hash = "1.1.0"
-countme = "3.0.1"
-indexmap = "1.9.1"
+rustc-hash = { workspace = true }
+countme = { workspace = true }
+indexmap = { workspace = true }
[dev-dependencies]
rome_js_parser = { path = "../rome_js_parser"}

MODIFY
crates/rome_fs/Cargo.toml
crates/rome_fs/Cargo.toml
@@ -10,15 +10,13 @@ license = "MIT"
[dependencies]
rome_diagnostics = { path = "../rome_diagnostics" }
-indexmap = "1.8.0"
+indexmap = { workspace = true }
parking_lot = { version = "0.12.0", features = ["arc_lock"] }
rayon = "1.5.1"
crossbeam = "0.8.1"
-tracing = { version = "0.1.31", default-features = false, features = ["std"] }
+tracing = { workspace = true }
serde = { version = "1.0.136", features = ["derive"], optional = true }
schemars = { version = "0.8.10", optional = true }
-[dev-dependencies]
-
[features]
serde = ["dep:serde", "schemars", "rome_diagnostics/schema"]

MODIFY
crates/rome_js_analyze/Cargo.toml
crates/rome_js_analyze/Cargo.toml
@@ -16,7 +16,7 @@ rome_js_factory = { path = "../rome_js_factory" }
rome_console = { path = "../rome_console" }
rome_diagnostics = { path = "../rome_diagnostics" }
roaring = "0.9.0"
-rustc-hash = "1.1.0"
+rustc-hash = { workspace = true }
serde = { version = "1.0.136", features = ["derive"], optional = true }
serde_json = { version = "1.0.74", features = ["raw_value"] }
@@ -25,5 +25,5 @@ tests_macros = { path = "../tests_macros" }
rome_text_edit = { path = "../rome_text_edit" }
rome_js_parser = { path = "../rome_js_parser", features = ["tests"] }
insta = { version = "1.18.2", features = ["glob"] }
-countme = { version = "3.0.0", features = ["enable"] }
+countme = { workspace = true, features = ["enable"] }
similar = "2.1.0"

MODIFY
crates/rome_js_formatter/Cargo.toml
crates/rome_js_formatter/Cargo.toml
@@ -14,7 +14,7 @@ rome_js_syntax = { path = "../rome_js_syntax" }
rome_js_factory = { path = "../rome_js_factory" }
rome_formatter = { path = "../rome_formatter" }
rome_rowan = { path = "../rome_rowan" }
-tracing = { version = "0.1.31", default-features = false, features = ["std"] }
+tracing = { workspace = true }
unicode-width = "0.1.9"
serde = { version = "1.0.136", features = ["derive"], optional = true }
schemars = { version = "0.8.10", optional = true }
@@ -29,7 +29,7 @@ serde_json = "1"
tests_macros = { path = "../tests_macros" }
insta = { version="1.18.2", features = ["glob"] }
rome_diagnostics = { path = "../rome_diagnostics" }
-countme = { version = "3.0.0", features = ["enable"] }
+countme = { workspace = true, features = ["enable"] }
similar = "2.1.0"
similar-asserts = "1.2.0"
ctor = "0.1.21"

MODIFY
crates/rome_js_parser/Cargo.toml
crates/rome_js_parser/Cargo.toml
@@ -14,10 +14,10 @@ rome_js_factory = { path = "../rome_js_factory" }
rome_rowan = { path = "../rome_rowan" }
drop_bomb = "0.1.5"
bitflags = "1.3.2"
-indexmap = "1.8.0"
+indexmap = { workspace = true }
cfg-if = "1.0.0"
smallvec = { version = "1.8.0", features = ["union", "const_new"] }
-tracing = { version = "0.1.31", default-features = false, features = ["std"] }
+tracing = { workspace = true }
[dev-dependencies]
tests_macros = { path = "../tests_macros" }

MODIFY
crates/rome_lsp/Cargo.toml
crates/rome_lsp/Cargo.toml
@@ -12,7 +12,7 @@ license = "MIT"
serde_json = "1.0.74"
serde = { version = "1.0.133", features = ["derive"] }
anyhow = "1.0.52"
-indexmap = "1.8.0"
+indexmap = { workspace = true }
rome_fs = { path = "../rome_fs" }
rome_service = { path = "../rome_service" }
rome_js_formatter = { path = "../rome_js_formatter" }
@@ -23,11 +23,11 @@ rome_flags = { path = "../rome_flags" }
rome_rowan = { path = "../rome_rowan" }
rome_console = { path = "../rome_console" }
rome_text_edit = { path = "../rome_text_edit" }
-tokio = { version = "1.15.0", features = ["io-std"] }
+tokio = { workspace = true, features = ["io-std"] }
tower-lsp = { version = "0.17.0" }
-tracing = { version = "0.1.31", default-features = false, features = ["std", "attributes"] }
+tracing = { workspace = true, features = ["attributes"] }
futures = "0.3"
[dev-dependencies]
tower = { version = "0.4.12", features = ["timeout"] }
-tokio = { version = "1.15.0", features = ["rt", "rt-multi-thread", "macros"] }
+tokio = { workspace = true, features = ["rt", "rt-multi-thread", "macros"] }

MODIFY
crates/rome_rowan/Cargo.toml
crates/rome_rowan/Cargo.toml
@@ -8,13 +8,13 @@ description = "Library for generic lossless syntax trees"
edition = "2021"
[dependencies]
-rustc-hash = "1.1.0"
+rustc-hash = { workspace = true }
hashbrown = { version = "0.12.3", features = [
"inline-more",
], default-features = false }
rome_text_size = { path = "../rome_text_size"}
memoffset = "0.6.5"
-countme = "3.0.0"
+countme = { workspace = true }
serde = { version = "1.0.133", optional = true, default-features = false }
rome_text_edit = { path = "../rome_text_edit" }
schemars = { version = "0.8.10", optional = true }

MODIFY
crates/rome_service/Cargo.toml
crates/rome_service/Cargo.toml
@@ -9,7 +9,7 @@ license = "MIT"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
-dashmap = "5.2.0"
+dashmap = { workspace = true }
serde = { version = "1.0.133", features = ["derive"] }
serde_json = { version = "1.0.74", features = ["raw_value"] }
rome_analyze = { path = "../rome_analyze", features = ["serde"] }
@@ -25,9 +25,9 @@ rome_js_formatter = { path = "../rome_js_formatter", features = ["serde"] }
rome_js_semantic = { path = "../rome_js_semantic" }
rome_rowan = { path = "../rome_rowan", features = ["serde"] }
rome_text_edit = { path = "../rome_text_edit" }
-indexmap = { version = "1.9.1", features = ["serde"] }
+indexmap = { workspace = true, features = ["serde"] }
schemars = { version = "0.8.10", features = ["indexmap1"], optional = true }
-tracing = { version = "0.1.31", default-features = false, features = ["std"] }
+tracing = { workspace = true }
[features]
schemars = ["dep:schemars", "rome_formatter/serde", "rome_js_factory", "rome_text_edit/schemars"]

MODIFY
xtask/bench/Cargo.toml
xtask/bench/Cargo.toml
@@ -23,7 +23,7 @@ url = "2.2.2"
itertools = "0.10.3"
ansi_rgb = "0.2.0"
-countme = "3.0.1"
+countme = { workspace = true }
# dhat-on
dhat = { version = "0.3.0", optional = true }

MODIFY
xtask/coverage/Cargo.toml
xtask/coverage/Cargo.toml
@@ -23,6 +23,6 @@ regex = "1.5.5"
once_cell = "1.9.0"
walkdir = "2.3.2"
atty = "0.2.14"
-tracing = "0.1.34"
+tracing = { workspace = true }
tracing-subscriber = { version = "0.3.11", features = ["env-filter", "std"] }
backtrace = "0.3.65"

chore: use cargo workspace dependencies (#3353)