Unnamed repository; edit this file 'description' to name the repository.
Make text-size a workspace dep
Ariel Davis 2023-05-06
parent 85dd7b2 · commit 4b28ad9
-rw-r--r--Cargo.toml1
-rw-r--r--crates/test-utils/Cargo.toml2
-rw-r--r--crates/text-edit/Cargo.toml2
-rw-r--r--lib/line-index/Cargo.toml2
4 files changed, 4 insertions, 3 deletions
diff --git a/Cargo.toml b/Cargo.toml
index a37b05f121..123b06e0cc 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -80,6 +80,7 @@ line-index = { version = "0.1.0", path = "./lib/line-index" }
smallvec = { version = "1.10.0", features = ["const_new", "union", "const_generics"] }
smol_str = "0.2.0"
nohash-hasher = "0.2.0"
+text-size = "1.1.0"
# the following crates are pinned to prevent us from pulling in syn 2 until all our dependencies have moved
serde = { version = "=1.0.156", features = ["derive"] }
serde_json = "1.0.94"
diff --git a/crates/test-utils/Cargo.toml b/crates/test-utils/Cargo.toml
index 92b1ef23e6..2b5b6f4956 100644
--- a/crates/test-utils/Cargo.toml
+++ b/crates/test-utils/Cargo.toml
@@ -14,7 +14,7 @@ doctest = false
[dependencies]
# Avoid adding deps here, this crate is widely used in tests it should compile fast!
dissimilar = "1.0.4"
-text-size = "1.1.0"
+text-size.workspace = true
rustc-hash = "1.1.0"
stdx.workspace = true
diff --git a/crates/text-edit/Cargo.toml b/crates/text-edit/Cargo.toml
index 337cd23473..76d0ca5ccb 100644
--- a/crates/text-edit/Cargo.toml
+++ b/crates/text-edit/Cargo.toml
@@ -13,4 +13,4 @@ doctest = false
[dependencies]
itertools = "0.10.5"
-text-size = "1.1.0"
+text-size.workspace = true
diff --git a/lib/line-index/Cargo.toml b/lib/line-index/Cargo.toml
index bea9242ea6..b08a55854e 100644
--- a/lib/line-index/Cargo.toml
+++ b/lib/line-index/Cargo.toml
@@ -7,5 +7,5 @@ repository = "https://github.com/rust-lang/rust-analyzer/tree/master/lib/line-in
edition = "2021"
[dependencies]
-text-size = "1"
+text-size.workspace = true
nohash-hasher.workspace = true