diff --git a/Cargo.toml b/Cargo.toml index a37b05f1211..123b06e0ccc 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 92b1ef23e69..2b5b6f49561 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 337cd234739..76d0ca5ccb6 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 bea9242ea6c..b08a55854e0 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