From 842d8ad9c8ff4537c545babc5a461811fe870f14 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 9 Mar 2021 22:30:58 +0300 Subject: [PATCH] Compilation speed --- crates/hir_def/Cargo.toml | 2 +- crates/hir_expand/Cargo.toml | 4 +++- crates/hir_ty/Cargo.toml | 2 +- crates/ide/Cargo.toml | 2 +- crates/ide_assists/Cargo.toml | 2 +- crates/ide_completion/Cargo.toml | 2 +- crates/ide_db/Cargo.toml | 2 +- crates/ide_ssr/Cargo.toml | 2 +- crates/mbe/Cargo.toml | 2 +- crates/proc_macro_srv/Cargo.toml | 2 +- 10 files changed, 12 insertions(+), 10 deletions(-) diff --git a/crates/hir_def/Cargo.toml b/crates/hir_def/Cargo.toml index 2f07b6d01a8..c2d99280f8e 100644 --- a/crates/hir_def/Cargo.toml +++ b/crates/hir_def/Cargo.toml @@ -28,10 +28,10 @@ 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] +test_utils = { path = "../test_utils" } expect-test = "1.1" diff --git a/crates/hir_expand/Cargo.toml b/crates/hir_expand/Cargo.toml index 5271110d241..76cb03126e5 100644 --- a/crates/hir_expand/Cargo.toml +++ b/crates/hir_expand/Cargo.toml @@ -21,4 +21,6 @@ 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" } + +[dev-dependencies] +test_utils = { path = "../test_utils" } diff --git a/crates/hir_ty/Cargo.toml b/crates/hir_ty/Cargo.toml index 6131ebee810..b9c93f56fb5 100644 --- a/crates/hir_ty/Cargo.toml +++ b/crates/hir_ty/Cargo.toml @@ -29,9 +29,9 @@ hir_expand = { path = "../hir_expand", 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] +test_utils = { path = "../test_utils" } expect-test = "1.1" tracing = "0.1" tracing-subscriber = { version = "0.2", default-features = false, features = ["env-filter", "registry"] } diff --git a/crates/ide/Cargo.toml b/crates/ide/Cargo.toml index f7c5efaf331..107bd84328b 100644 --- a/crates/ide/Cargo.toml +++ b/crates/ide/Cargo.toml @@ -27,7 +27,6 @@ text_edit = { path = "../text_edit", 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" } ide_assists = { path = "../ide_assists", version = "0.0.0" } ide_ssr = { path = "../ide_ssr", version = "0.0.0" } ide_completion = { path = "../ide_completion", version = "0.0.0" } @@ -37,4 +36,5 @@ ide_completion = { path = "../ide_completion", version = "0.0.0" } hir = { path = "../hir", version = "0.0.0" } [dev-dependencies] +test_utils = { path = "../test_utils" } expect-test = "1.1" diff --git a/crates/ide_assists/Cargo.toml b/crates/ide_assists/Cargo.toml index 3bf0099a92c..dd9aa27c6c2 100644 --- a/crates/ide_assists/Cargo.toml +++ b/crates/ide_assists/Cargo.toml @@ -21,7 +21,7 @@ text_edit = { path = "../text_edit", version = "0.0.0" } profile = { path = "../profile", 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] +test_utils = { path = "../test_utils" } expect-test = "1.1" diff --git a/crates/ide_completion/Cargo.toml b/crates/ide_completion/Cargo.toml index 84aa40736d7..585ecca506f 100644 --- a/crates/ide_completion/Cargo.toml +++ b/crates/ide_completion/Cargo.toml @@ -22,11 +22,11 @@ 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" } profile = { path = "../profile", version = "0.0.0" } -test_utils = { path = "../test_utils", version = "0.0.0" } # completions crate 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", version = "0.0.0" } [dev-dependencies] +test_utils = { path = "../test_utils" } expect-test = "1.1" diff --git a/crates/ide_db/Cargo.toml b/crates/ide_db/Cargo.toml index 1f855c6214d..1f7a90d2030 100644 --- a/crates/ide_db/Cargo.toml +++ b/crates/ide_db/Cargo.toml @@ -24,10 +24,10 @@ 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", version = "0.0.0" } [dev-dependencies] +test_utils = { path = "../test_utils" } expect-test = "1.1" diff --git a/crates/ide_ssr/Cargo.toml b/crates/ide_ssr/Cargo.toml index 315691f40c6..8c31df13a00 100644 --- a/crates/ide_ssr/Cargo.toml +++ b/crates/ide_ssr/Cargo.toml @@ -19,7 +19,7 @@ text_edit = { path = "../text_edit", version = "0.0.0" } syntax = { path = "../syntax", 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] +test_utils = { path = "../test_utils" } expect-test = "1.1" diff --git a/crates/mbe/Cargo.toml b/crates/mbe/Cargo.toml index c7d5e39fa31..1392142072a 100644 --- a/crates/mbe/Cargo.toml +++ b/crates/mbe/Cargo.toml @@ -18,8 +18,8 @@ log = "0.4.8" syntax = { path = "../syntax", version = "0.0.0" } parser = { path = "../parser", version = "0.0.0" } tt = { path = "../tt", version = "0.0.0" } -test_utils = { path = "../test_utils", version = "0.0.0" } stdx = { path = "../stdx", version = "0.0.0" } [dev-dependencies] profile = { path = "../profile" } +test_utils = { path = "../test_utils" } diff --git a/crates/proc_macro_srv/Cargo.toml b/crates/proc_macro_srv/Cargo.toml index 4c1b3036ae9..63b3f153223 100644 --- a/crates/proc_macro_srv/Cargo.toml +++ b/crates/proc_macro_srv/Cargo.toml @@ -17,9 +17,9 @@ memmap2 = "0.2.0" 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] +test_utils = { path = "../test_utils" } cargo_metadata = "0.13" # used as proc macro test targets -- 2.44.0