From bea3a33d842e9fa7715f79fdca7eefbaa88931c5 Mon Sep 17 00:00:00 2001 From: David Lattimore Date: Mon, 19 Jun 2023 20:44:09 +1000 Subject: [PATCH 1/3] Change in-tree libs to workspace dependencies --- Cargo.toml | 6 +++++- crates/base-db/Cargo.toml | 2 +- crates/hir-def/Cargo.toml | 2 +- crates/hir-expand/Cargo.toml | 2 +- crates/hir-ty/Cargo.toml | 2 +- crates/profile/Cargo.toml | 2 +- crates/project-model/Cargo.toml | 2 +- crates/rust-analyzer/Cargo.toml | 2 +- 8 files changed, 12 insertions(+), 8 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3050cf764a4..c60009e1912 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -75,7 +75,11 @@ toolchain = { path = "./crates/toolchain", version = "0.0.0" } tt = { path = "./crates/tt", version = "0.0.0" } vfs-notify = { path = "./crates/vfs-notify", version = "0.0.0" } vfs = { path = "./crates/vfs", version = "0.0.0" } -line-index = { version = "0.1.0-pre.1", path = "./lib/line-index" } + +# In-tree crates that are published separately and follow semver. +line-index = { version = "0.1.0-pre.1", path = "lib/line-index" } +la-arena = { version = "0.3.0", path = "lib/la-arena" } +lsp-server = { version = "0.7.0", path = "lib/lsp-server" } # non-local crates smallvec = { version = "1.10.0", features = [ diff --git a/crates/base-db/Cargo.toml b/crates/base-db/Cargo.toml index 6001772c86e..171c113a950 100644 --- a/crates/base-db/Cargo.toml +++ b/crates/base-db/Cargo.toml @@ -17,7 +17,7 @@ rustc-hash = "1.1.0" triomphe.workspace = true -la-arena = { version = "0.3.0", path = "../../lib/la-arena" } +la-arena.workspace = true # local deps cfg.workspace = true diff --git a/crates/hir-def/Cargo.toml b/crates/hir-def/Cargo.toml index 83c7051646e..49f8604de72 100644 --- a/crates/hir-def/Cargo.toml +++ b/crates/hir-def/Cargo.toml @@ -24,7 +24,7 @@ fst = { version = "0.4.7", default-features = false } hashbrown = { version = "0.12.1", default-features = false } indexmap = "1.9.1" itertools = "0.10.5" -la-arena = { version = "0.3.0", path = "../../lib/la-arena" } +la-arena.workspace = true once_cell = "1.17.0" rustc-hash = "1.1.0" smallvec.workspace = true diff --git a/crates/hir-expand/Cargo.toml b/crates/hir-expand/Cargo.toml index 40d8659f25b..2bb855d2308 100644 --- a/crates/hir-expand/Cargo.toml +++ b/crates/hir-expand/Cargo.toml @@ -16,7 +16,7 @@ cov-mark = "2.0.0-pre.1" tracing = "0.1.35" either = "1.7.0" rustc-hash = "1.1.0" -la-arena = { version = "0.3.0", path = "../../lib/la-arena" } +la-arena.workspace = true itertools = "0.10.5" hashbrown = { version = "0.12.1", features = [ "inline-more", diff --git a/crates/hir-ty/Cargo.toml b/crates/hir-ty/Cargo.toml index 247e6466d8b..10d65afde4c 100644 --- a/crates/hir-ty/Cargo.toml +++ b/crates/hir-ty/Cargo.toml @@ -26,7 +26,7 @@ chalk-solve = { version = "0.91.0", default-features = false } chalk-ir = "0.91.0" chalk-recursive = { version = "0.91.0", default-features = false } chalk-derive = "0.91.0" -la-arena = { version = "0.3.0", path = "../../lib/la-arena" } +la-arena.workspace = true once_cell = "1.17.0" triomphe.workspace = true nohash-hasher.workspace = true diff --git a/crates/profile/Cargo.toml b/crates/profile/Cargo.toml index 602e7427510..937834a82ae 100644 --- a/crates/profile/Cargo.toml +++ b/crates/profile/Cargo.toml @@ -15,7 +15,7 @@ doctest = false once_cell = "1.17.0" cfg-if = "1.0.0" libc = "0.2.135" -la-arena = { version = "0.3.0", path = "../../lib/la-arena" } +la-arena.workspace = true countme = { version = "3.0.1", features = ["enable"] } jemalloc-ctl = { version = "0.5.0", package = "tikv-jemalloc-ctl", optional = true } diff --git a/crates/project-model/Cargo.toml b/crates/project-model/Cargo.toml index 3abff64a83b..75977fc5b04 100644 --- a/crates/project-model/Cargo.toml +++ b/crates/project-model/Cargo.toml @@ -20,7 +20,7 @@ serde_json.workspace = true serde.workspace = true triomphe.workspace = true anyhow = "1.0.62" -la-arena = { version = "0.3.0", path = "../../lib/la-arena" } +la-arena.workspace = true itertools = "0.10.5" # local deps diff --git a/crates/rust-analyzer/Cargo.toml b/crates/rust-analyzer/Cargo.toml index dc8962064bf..26bc439e943 100644 --- a/crates/rust-analyzer/Cargo.toml +++ b/crates/rust-analyzer/Cargo.toml @@ -34,7 +34,7 @@ serde.workspace = true rayon = "1.6.1" num_cpus = "1.15.0" mimalloc = { version = "0.1.30", default-features = false, optional = true } -lsp-server = { version = "0.7.0", path = "../../lib/lsp-server" } +lsp-server.workspace = true tracing = "0.1.35" tracing-subscriber = { version = "0.3.16", default-features = false, features = [ "registry", From a0467c546c1e412cd1b35257f8d5ae08f79072d6 Mon Sep 17 00:00:00 2001 From: David Lattimore Date: Tue, 20 Jun 2023 13:49:05 +1000 Subject: [PATCH 2/3] Release la-arena 0.3.1 --- Cargo.lock | 2 +- Cargo.toml | 2 +- lib/la-arena/Cargo.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1fe451c2f39..6336317478f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -878,7 +878,7 @@ dependencies = [ [[package]] name = "la-arena" -version = "0.3.0" +version = "0.3.1" [[package]] name = "lazy_static" diff --git a/Cargo.toml b/Cargo.toml index c60009e1912..39008a690c0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -78,7 +78,7 @@ vfs = { path = "./crates/vfs", version = "0.0.0" } # In-tree crates that are published separately and follow semver. line-index = { version = "0.1.0-pre.1", path = "lib/line-index" } -la-arena = { version = "0.3.0", path = "lib/la-arena" } +la-arena = { version = "0.3.1", path = "lib/la-arena" } lsp-server = { version = "0.7.0", path = "lib/lsp-server" } # non-local crates diff --git a/lib/la-arena/Cargo.toml b/lib/la-arena/Cargo.toml index ec5ba8ba00c..01f2b87b39d 100644 --- a/lib/la-arena/Cargo.toml +++ b/lib/la-arena/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "la-arena" -version = "0.3.0" +version = "0.3.1" description = "Simple index-based arena without deletion." license = "MIT OR Apache-2.0" repository = "https://github.com/rust-lang/rust-analyzer/tree/master/lib/la-arena" From fb3e54ef058289eee053b65581ef7e901ff52425 Mon Sep 17 00:00:00 2001 From: David Lattimore Date: Tue, 20 Jun 2023 13:51:50 +1000 Subject: [PATCH 3/3] Release lsp-server 0.7.1 --- Cargo.lock | 2 +- Cargo.toml | 2 +- lib/lsp-server/Cargo.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6336317478f..2bdd25af34e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -945,7 +945,7 @@ dependencies = [ [[package]] name = "lsp-server" -version = "0.7.0" +version = "0.7.1" dependencies = [ "crossbeam-channel", "log", diff --git a/Cargo.toml b/Cargo.toml index 39008a690c0..f34809a1cdf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -79,7 +79,7 @@ vfs = { path = "./crates/vfs", version = "0.0.0" } # In-tree crates that are published separately and follow semver. line-index = { version = "0.1.0-pre.1", path = "lib/line-index" } la-arena = { version = "0.3.1", path = "lib/la-arena" } -lsp-server = { version = "0.7.0", path = "lib/lsp-server" } +lsp-server = { version = "0.7.1", path = "lib/lsp-server" } # non-local crates smallvec = { version = "1.10.0", features = [ diff --git a/lib/lsp-server/Cargo.toml b/lib/lsp-server/Cargo.toml index e78a9d2eb16..7183cbac635 100644 --- a/lib/lsp-server/Cargo.toml +++ b/lib/lsp-server/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lsp-server" -version = "0.7.0" +version = "0.7.1" description = "Generic LSP server scaffold." license = "MIT OR Apache-2.0" repository = "https://github.com/rust-lang/rust-analyzer/tree/master/lib/lsp-server"