From a8fa5cd42e3cfa131121a46b289ee919e495316e Mon Sep 17 00:00:00 2001 From: Pavan Kumar Sunkara Date: Mon, 24 Aug 2020 10:25:19 +0200 Subject: [PATCH] Add version to deps in cargo.toml --- crates/assists/Cargo.toml | 16 ++++++++-------- crates/base_db/Cargo.toml | 14 +++++++------- crates/cfg/Cargo.toml | 2 +- crates/flycheck/Cargo.toml | 2 +- crates/hir/Cargo.toml | 14 +++++++------- crates/hir_def/Cargo.toml | 20 ++++++++++---------- crates/hir_expand/Cargo.toml | 16 ++++++++-------- crates/hir_ty/Cargo.toml | 16 ++++++++-------- crates/ide/Cargo.toml | 22 +++++++++++----------- crates/ide_db/Cargo.toml | 14 +++++++------- crates/mbe/Cargo.toml | 6 +++--- crates/proc_macro_api/Cargo.toml | 2 +- crates/proc_macro_srv/Cargo.toml | 8 ++++---- crates/profile/Cargo.toml | 2 +- crates/project_model/Cargo.toml | 14 +++++++------- crates/rust-analyzer/Cargo.toml | 1 + crates/ssr/Cargo.toml | 12 ++++++------ crates/syntax/Cargo.toml | 6 +++--- crates/test_utils/Cargo.toml | 2 +- crates/tt/Cargo.toml | 2 +- crates/vfs-notify/Cargo.toml | 4 ++-- crates/vfs/Cargo.toml | 2 +- 22 files changed, 99 insertions(+), 98 deletions(-) diff --git a/crates/assists/Cargo.toml b/crates/assists/Cargo.toml index a560a35c7e..aab901684e 100644 --- a/crates/assists/Cargo.toml +++ b/crates/assists/Cargo.toml @@ -13,11 +13,11 @@ rustc-hash = "1.1.0" itertools = "0.9.0" either = "1.5.3" -stdx = { path = "../stdx" } -syntax = { path = "../syntax" } -text_edit = { path = "../text_edit" } -profile = { path = "../profile" } -base_db = { path = "../base_db" } -ide_db = { path = "../ide_db" } -hir = { path = "../hir" } -test_utils = { path = "../test_utils" } +stdx = { path = "../stdx", version = "0.0.0" } +syntax = { path = "../syntax", version = "0.0.0" } +text_edit = { path = "../text_edit", version = "0.0.0" } +profile = { path = "../profile", version = "0.0.0" } +base_db = { path = "../base_db", version = "0.0.0" } +ide_db = { path = "../ide_db", version = "0.0.0" } +hir = { path = "../hir", version = "0.0.0" } +test_utils = { path = "../test_utils", version = "0.0.0" } diff --git a/crates/base_db/Cargo.toml b/crates/base_db/Cargo.toml index 7347d7528c..c343b22ee9 100644 --- a/crates/base_db/Cargo.toml +++ b/crates/base_db/Cargo.toml @@ -12,10 +12,10 @@ doctest = false salsa = "0.15.2" rustc-hash = "1.1.0" -syntax = { path = "../syntax" } -cfg = { path = "../cfg" } -profile = { path = "../profile" } -tt = { path = "../tt" } -test_utils = { path = "../test_utils" } -vfs = { path = "../vfs" } -stdx = { path = "../stdx" } +syntax = { path = "../syntax", version = "0.0.0" } +cfg = { path = "../cfg", version = "0.0.0" } +profile = { path = "../profile", version = "0.0.0" } +tt = { path = "../tt", version = "0.0.0" } +test_utils = { path = "../test_utils", version = "0.0.0" } +vfs = { path = "../vfs", version = "0.0.0" } +stdx = { path = "../stdx", version = "0.0.0" } diff --git a/crates/cfg/Cargo.toml b/crates/cfg/Cargo.toml index d2ea551d18..573a69a1cb 100644 --- a/crates/cfg/Cargo.toml +++ b/crates/cfg/Cargo.toml @@ -11,7 +11,7 @@ doctest = false [dependencies] rustc-hash = "1.1.0" -tt = { path = "../tt" } +tt = { path = "../tt", version = "0.0.0" } [dev-dependencies] mbe = { path = "../mbe" } diff --git a/crates/flycheck/Cargo.toml b/crates/flycheck/Cargo.toml index 262a66e4e3..32f026727a 100644 --- a/crates/flycheck/Cargo.toml +++ b/crates/flycheck/Cargo.toml @@ -15,4 +15,4 @@ cargo_metadata = "0.11.1" serde_json = "1.0.48" jod-thread = "0.1.1" -toolchain = { path = "../toolchain" } +toolchain = { path = "../toolchain", version = "0.0.0" } diff --git a/crates/hir/Cargo.toml b/crates/hir/Cargo.toml index dbb2986b60..4b5221f60b 100644 --- a/crates/hir/Cargo.toml +++ b/crates/hir/Cargo.toml @@ -15,10 +15,10 @@ either = "1.5.3" arrayvec = "0.5.1" itertools = "0.9.0" -stdx = { path = "../stdx" } -syntax = { path = "../syntax" } -base_db = { path = "../base_db" } -profile = { path = "../profile" } -hir_expand = { path = "../hir_expand" } -hir_def = { path = "../hir_def" } -hir_ty = { path = "../hir_ty" } +stdx = { path = "../stdx", version = "0.0.0" } +syntax = { path = "../syntax", version = "0.0.0" } +base_db = { path = "../base_db", version = "0.0.0" } +profile = { path = "../profile", version = "0.0.0" } +hir_expand = { path = "../hir_expand", version = "0.0.0" } +hir_def = { path = "../hir_def", version = "0.0.0" } +hir_ty = { path = "../hir_ty", version = "0.0.0" } diff --git a/crates/hir_def/Cargo.toml b/crates/hir_def/Cargo.toml index 57745322fd..cba5fbb273 100644 --- a/crates/hir_def/Cargo.toml +++ b/crates/hir_def/Cargo.toml @@ -20,16 +20,16 @@ itertools = "0.9.0" indexmap = "1.4.0" smallvec = "1.4.0" -stdx = { path = "../stdx" } -arena = { path = "../arena" } -base_db = { path = "../base_db" } -syntax = { path = "../syntax" } -profile = { path = "../profile" } -hir_expand = { path = "../hir_expand" } -test_utils = { path = "../test_utils" } -mbe = { path = "../mbe" } -cfg = { path = "../cfg" } -tt = { path = "../tt" } +stdx = { path = "../stdx", version = "0.0.0" } +arena = { path = "../arena", version = "0.0.0" } +base_db = { path = "../base_db", version = "0.0.0" } +syntax = { path = "../syntax", version = "0.0.0" } +profile = { path = "../profile", version = "0.0.0" } +hir_expand = { path = "../hir_expand", version = "0.0.0" } +test_utils = { path = "../test_utils", version = "0.0.0" } +mbe = { path = "../mbe", version = "0.0.0" } +cfg = { path = "../cfg", version = "0.0.0" } +tt = { path = "../tt", version = "0.0.0" } [dev-dependencies] expect-test = "0.1" diff --git a/crates/hir_expand/Cargo.toml b/crates/hir_expand/Cargo.toml index 1c46992915..30378f5e0c 100644 --- a/crates/hir_expand/Cargo.toml +++ b/crates/hir_expand/Cargo.toml @@ -13,11 +13,11 @@ log = "0.4.8" either = "1.5.3" rustc-hash = "1.0.0" -arena = { path = "../arena" } -base_db = { path = "../base_db" } -syntax = { path = "../syntax" } -parser = { path = "../parser" } -profile = { path = "../profile" } -tt = { path = "../tt" } -mbe = { path = "../mbe" } -test_utils = { path = "../test_utils"} +arena = { path = "../arena", version = "0.0.0" } +base_db = { path = "../base_db", version = "0.0.0" } +syntax = { path = "../syntax", version = "0.0.0" } +parser = { path = "../parser", version = "0.0.0" } +profile = { path = "../profile", version = "0.0.0" } +tt = { path = "../tt", version = "0.0.0" } +mbe = { path = "../mbe", version = "0.0.0" } +test_utils = { path = "../test_utils", version = "0.0.0" } diff --git a/crates/hir_ty/Cargo.toml b/crates/hir_ty/Cargo.toml index 06da0d0ec8..701fc0f9d5 100644 --- a/crates/hir_ty/Cargo.toml +++ b/crates/hir_ty/Cargo.toml @@ -20,14 +20,14 @@ chalk-solve = { version = "0.23.0" } chalk-ir = { version = "0.23.0" } chalk-recursive = { version = "0.23.0" } -stdx = { path = "../stdx" } -hir_def = { path = "../hir_def" } -hir_expand = { path = "../hir_expand" } -arena = { path = "../arena" } -base_db = { path = "../base_db" } -profile = { path = "../profile" } -syntax = { path = "../syntax" } -test_utils = { path = "../test_utils" } +stdx = { path = "../stdx", version = "0.0.0" } +hir_def = { path = "../hir_def", version = "0.0.0" } +hir_expand = { path = "../hir_expand", version = "0.0.0" } +arena = { path = "../arena", version = "0.0.0" } +base_db = { path = "../base_db", version = "0.0.0" } +profile = { path = "../profile", version = "0.0.0" } +syntax = { path = "../syntax", version = "0.0.0" } +test_utils = { path = "../test_utils", version = "0.0.0" } [dev-dependencies] expect-test = "0.1" diff --git a/crates/ide/Cargo.toml b/crates/ide/Cargo.toml index 700944430f..6884010986 100644 --- a/crates/ide/Cargo.toml +++ b/crates/ide/Cargo.toml @@ -16,20 +16,20 @@ log = "0.4.8" rustc-hash = "1.1.0" oorandom = "11.1.2" -stdx = { path = "../stdx" } -syntax = { path = "../syntax" } -text_edit = { path = "../text_edit" } -base_db = { path = "../base_db" } -ide_db = { path = "../ide_db" } -cfg = { path = "../cfg" } -profile = { path = "../profile" } -test_utils = { path = "../test_utils" } -assists = { path = "../assists" } -ssr = { path = "../ssr" } +stdx = { path = "../stdx", version = "0.0.0" } +syntax = { path = "../syntax", version = "0.0.0" } +text_edit = { path = "../text_edit", version = "0.0.0" } +base_db = { path = "../base_db", version = "0.0.0" } +ide_db = { path = "../ide_db", version = "0.0.0" } +cfg = { path = "../cfg", version = "0.0.0" } +profile = { path = "../profile", version = "0.0.0" } +test_utils = { path = "../test_utils", version = "0.0.0" } +assists = { path = "../assists", version = "0.0.0" } +ssr = { path = "../ssr", version = "0.0.0" } # ide should depend only on the top-level `hir` package. if you need # something from some `hir_xxx` subpackage, reexport the API via `hir`. -hir = { path = "../hir" } +hir = { path = "../hir", version = "0.0.0" } [dev-dependencies] expect-test = "0.1" diff --git a/crates/ide_db/Cargo.toml b/crates/ide_db/Cargo.toml index 692fb64153..2230013df9 100644 --- a/crates/ide_db/Cargo.toml +++ b/crates/ide_db/Cargo.toml @@ -19,12 +19,12 @@ rustc-hash = "1.1.0" once_cell = "1.3.1" either = "1.5.3" -stdx = { path = "../stdx" } -syntax = { path = "../syntax" } -text_edit = { path = "../text_edit" } -base_db = { path = "../base_db" } -profile = { path = "../profile" } -test_utils = { path = "../test_utils" } +stdx = { path = "../stdx", version = "0.0.0" } +syntax = { path = "../syntax", version = "0.0.0" } +text_edit = { path = "../text_edit", version = "0.0.0" } +base_db = { path = "../base_db", version = "0.0.0" } +profile = { path = "../profile", version = "0.0.0" } +test_utils = { path = "../test_utils", version = "0.0.0" } # ide should depend only on the top-level `hir` package. if you need # something from some `hir_xxx` subpackage, reexport the API via `hir`. -hir = { path = "../hir" } +hir = { path = "../hir", version = "0.0.0" } diff --git a/crates/mbe/Cargo.toml b/crates/mbe/Cargo.toml index 1aba8b7c48..ecd917792b 100644 --- a/crates/mbe/Cargo.toml +++ b/crates/mbe/Cargo.toml @@ -13,9 +13,9 @@ rustc-hash = "1.1.0" smallvec = "1.2.0" log = "0.4.8" -syntax = { path = "../syntax" } -parser = { path = "../parser" } -tt = { path = "../tt" } +syntax = { path = "../syntax", version = "0.0.0" } +parser = { path = "../parser", version = "0.0.0" } +tt = { path = "../tt", version = "0.0.0" } [dev-dependencies] test_utils = { path = "../test_utils" } diff --git a/crates/proc_macro_api/Cargo.toml b/crates/proc_macro_api/Cargo.toml index a3a4c11033..cc6019c918 100644 --- a/crates/proc_macro_api/Cargo.toml +++ b/crates/proc_macro_api/Cargo.toml @@ -15,4 +15,4 @@ log = "0.4.8" crossbeam-channel = "0.4.0" jod-thread = "0.1.1" -tt = { path = "../tt" } +tt = { path = "../tt", version = "0.0.0" } diff --git a/crates/proc_macro_srv/Cargo.toml b/crates/proc_macro_srv/Cargo.toml index a468b55609..700d2c0f7a 100644 --- a/crates/proc_macro_srv/Cargo.toml +++ b/crates/proc_macro_srv/Cargo.toml @@ -13,10 +13,10 @@ goblin = "0.2.1" libloading = "0.6.0" memmap = "0.7" -tt = { path = "../tt" } -mbe = { path = "../mbe" } -proc_macro_api = { path = "../proc_macro_api" } -test_utils = { path = "../test_utils" } +tt = { path = "../tt", version = "0.0.0" } +mbe = { path = "../mbe", version = "0.0.0" } +proc_macro_api = { path = "../proc_macro_api", version = "0.0.0" } +test_utils = { path = "../test_utils", version = "0.0.0" } [dev-dependencies] cargo_metadata = "0.11.1" diff --git a/crates/profile/Cargo.toml b/crates/profile/Cargo.toml index e271e3a567..17769fcd30 100644 --- a/crates/profile/Cargo.toml +++ b/crates/profile/Cargo.toml @@ -14,7 +14,7 @@ cfg-if = "0.1.10" libc = "0.2.73" backtrace = { version = "0.3.44", optional = true } -arena = { path = "../arena" } +arena = { path = "../arena", version = "0.0.0" } [target.'cfg(target_os = "linux")'.dependencies] perf-event = "0.4" diff --git a/crates/project_model/Cargo.toml b/crates/project_model/Cargo.toml index 386f72f419..53db7d3b99 100644 --- a/crates/project_model/Cargo.toml +++ b/crates/project_model/Cargo.toml @@ -16,10 +16,10 @@ serde = { version = "1.0.106", features = ["derive"] } serde_json = "1.0.48" anyhow = "1.0.26" -arena = { path = "../arena" } -cfg = { path = "../cfg" } -base_db = { path = "../base_db" } -toolchain = { path = "../toolchain" } -proc_macro_api = { path = "../proc_macro_api" } -paths = { path = "../paths" } -stdx = { path = "../stdx" } +arena = { path = "../arena", version = "0.0.0" } +cfg = { path = "../cfg", version = "0.0.0" } +base_db = { path = "../base_db", version = "0.0.0" } +toolchain = { path = "../toolchain", version = "0.0.0" } +proc_macro_api = { path = "../proc_macro_api", version = "0.0.0" } +paths = { path = "../paths", version = "0.0.0" } +stdx = { path = "../stdx", version = "0.0.0" } diff --git a/crates/rust-analyzer/Cargo.toml b/crates/rust-analyzer/Cargo.toml index 068a961dc6..7e280b1f77 100644 --- a/crates/rust-analyzer/Cargo.toml +++ b/crates/rust-analyzer/Cargo.toml @@ -5,6 +5,7 @@ license = "MIT OR Apache-2.0" authors = ["rust-analyzer developers"] autobins = false edition = "2018" +publish = false [lib] doctest = false diff --git a/crates/ssr/Cargo.toml b/crates/ssr/Cargo.toml index 22b6af0fab..6f0f53d705 100644 --- a/crates/ssr/Cargo.toml +++ b/crates/ssr/Cargo.toml @@ -14,12 +14,12 @@ doctest = false rustc-hash = "1.1.0" itertools = "0.9.0" -text_edit = { path = "../text_edit" } -syntax = { path = "../syntax" } -base_db = { path = "../base_db" } -ide_db = { path = "../ide_db" } -hir = { path = "../hir" } -test_utils = { path = "../test_utils" } +text_edit = { path = "../text_edit", version = "0.0.0" } +syntax = { path = "../syntax", version = "0.0.0" } +base_db = { path = "../base_db", version = "0.0.0" } +ide_db = { path = "../ide_db", version = "0.0.0" } +hir = { path = "../hir", version = "0.0.0" } +test_utils = { path = "../test_utils", version = "0.0.0" } [dev-dependencies] expect-test = "0.1" diff --git a/crates/syntax/Cargo.toml b/crates/syntax/Cargo.toml index 6818f3ad88..2c1bdb2957 100644 --- a/crates/syntax/Cargo.toml +++ b/crates/syntax/Cargo.toml @@ -23,9 +23,9 @@ once_cell = "1.3.1" smol_str = { version = "0.1.15", features = ["serde"] } serde = { version = "1.0.106", features = ["derive"] } -stdx = { path = "../stdx" } -text_edit = { path = "../text_edit" } -parser = { path = "../parser" } +stdx = { path = "../stdx", version = "0.0.0" } +text_edit = { path = "../text_edit", version = "0.0.0" } +parser = { path = "../parser", version = "0.0.0" } [dev-dependencies] walkdir = "2.3.1" diff --git a/crates/test_utils/Cargo.toml b/crates/test_utils/Cargo.toml index 45e5fb97f7..d60b88add9 100644 --- a/crates/test_utils/Cargo.toml +++ b/crates/test_utils/Cargo.toml @@ -15,4 +15,4 @@ text-size = "1.0.0" serde_json = "1.0.48" rustc-hash = "1.1.0" -stdx = { path = "../stdx" } +stdx = { path = "../stdx", version = "0.0.0" } diff --git a/crates/tt/Cargo.toml b/crates/tt/Cargo.toml index dfcdcf03e8..bf7e3f21f3 100644 --- a/crates/tt/Cargo.toml +++ b/crates/tt/Cargo.toml @@ -13,4 +13,4 @@ doctest = false # to reduce number of compilations smol_str = { version = "0.1.15", features = ["serde"] } -stdx = { path = "../stdx" } +stdx = { path = "../stdx", version = "0.0.0" } diff --git a/crates/vfs-notify/Cargo.toml b/crates/vfs-notify/Cargo.toml index c1e53f4b15..304c9883f8 100644 --- a/crates/vfs-notify/Cargo.toml +++ b/crates/vfs-notify/Cargo.toml @@ -16,5 +16,5 @@ walkdir = "2.3.1" crossbeam-channel = "0.4.0" notify = "5.0.0-pre.3" -vfs = { path = "../vfs" } -paths = { path = "../paths" } +vfs = { path = "../vfs", version = "0.0.0" } +paths = { path = "../paths", version = "0.0.0" } diff --git a/crates/vfs/Cargo.toml b/crates/vfs/Cargo.toml index 9ae8f19b6f..a88d69a5e9 100644 --- a/crates/vfs/Cargo.toml +++ b/crates/vfs/Cargo.toml @@ -12,4 +12,4 @@ doctest = false rustc-hash = "1.0" fst = "0.4" -paths = { path = "../paths" } +paths = { path = "../paths", version = "0.0.0" }