From 4ccd90af81af39d53333f23fac79e97ff2f0f621 Mon Sep 17 00:00:00 2001 From: Giles Cope Date: Sat, 11 Sep 2021 16:20:04 +0100 Subject: [PATCH 1/2] remove unused deps --- Cargo.lock | 8 -------- crates/base_db/Cargo.toml | 1 - crates/hir/Cargo.toml | 1 - crates/ide_completion/Cargo.toml | 1 - crates/proc_macro_api/Cargo.toml | 2 -- crates/rust-analyzer/Cargo.toml | 1 - crates/syntax/Cargo.toml | 1 - crates/vfs-notify/Cargo.toml | 1 - 8 files changed, 16 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index bbd661337889..5139b2b95cbf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -99,7 +99,6 @@ dependencies = [ "profile", "rustc-hash", "salsa", - "stdx", "syntax", "test_utils", "tt", @@ -471,7 +470,6 @@ dependencies = [ "hir_def", "hir_expand", "hir_ty", - "indexmap", "itertools", "once_cell", "profile", @@ -641,7 +639,6 @@ dependencies = [ "syntax", "test_utils", "text_edit", - "tracing", "xshell", ] @@ -1127,8 +1124,6 @@ dependencies = [ name = "proc_macro_api" version = "0.0.0" dependencies = [ - "crossbeam-channel", - "jod-thread", "memmap2", "object", "paths", @@ -1344,7 +1339,6 @@ dependencies = [ "stdx", "syntax", "test_utils", - "text_edit", "threadpool", "tikv-jemallocator", "toolchain", @@ -1561,7 +1555,6 @@ dependencies = [ name = "syntax" version = "0.0.0" dependencies = [ - "arrayvec", "cov-mark", "expect-test", "indexmap", @@ -1848,7 +1841,6 @@ dependencies = [ "jod-thread", "notify", "paths", - "rustc-hash", "tracing", "vfs", "walkdir", diff --git a/crates/base_db/Cargo.toml b/crates/base_db/Cargo.toml index 1301d2227558..b43e5efb2a00 100644 --- a/crates/base_db/Cargo.toml +++ b/crates/base_db/Cargo.toml @@ -18,4 +18,3 @@ 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/hir/Cargo.toml b/crates/hir/Cargo.toml index ea1afb46d6ce..43059bb8cce1 100644 --- a/crates/hir/Cargo.toml +++ b/crates/hir/Cargo.toml @@ -15,7 +15,6 @@ arrayvec = "0.7" itertools = "0.10.0" smallvec = "1.4.0" once_cell = "1" -indexmap = "1.7" stdx = { path = "../stdx", version = "0.0.0" } syntax = { path = "../syntax", version = "0.0.0" } diff --git a/crates/ide_completion/Cargo.toml b/crates/ide_completion/Cargo.toml index 67c86216f1f3..8d9100156023 100644 --- a/crates/ide_completion/Cargo.toml +++ b/crates/ide_completion/Cargo.toml @@ -11,7 +11,6 @@ doctest = false [dependencies] cov-mark = "2.0.0-pre.1" itertools = "0.10.0" -tracing = "0.1" rustc-hash = "1.1.0" either = "1.6.1" once_cell = "1.7" diff --git a/crates/proc_macro_api/Cargo.toml b/crates/proc_macro_api/Cargo.toml index e59b903bc5ba..99b9ead0fc09 100644 --- a/crates/proc_macro_api/Cargo.toml +++ b/crates/proc_macro_api/Cargo.toml @@ -12,8 +12,6 @@ doctest = false serde = { version = "1.0", features = ["derive"] } serde_json = { version = "1.0", features = ["unbounded_depth"] } tracing = "0.1" -crossbeam-channel = "0.5.0" -jod-thread = "0.1.1" memmap2 = "0.3.0" snap = "1.0" diff --git a/crates/rust-analyzer/Cargo.toml b/crates/rust-analyzer/Cargo.toml index 30056887f7fc..a39f57e4bdd4 100644 --- a/crates/rust-analyzer/Cargo.toml +++ b/crates/rust-analyzer/Cargo.toml @@ -46,7 +46,6 @@ ide_db = { path = "../ide_db", version = "0.0.0" } profile = { path = "../profile", version = "0.0.0" } project_model = { path = "../project_model", version = "0.0.0" } syntax = { path = "../syntax", version = "0.0.0" } -text_edit = { path = "../text_edit", version = "0.0.0" } vfs = { path = "../vfs", version = "0.0.0" } vfs-notify = { path = "../vfs-notify", version = "0.0.0" } cfg = { path = "../cfg", version = "0.0.0" } diff --git a/crates/syntax/Cargo.toml b/crates/syntax/Cargo.toml index 0b2134705b6e..32c765191c7b 100644 --- a/crates/syntax/Cargo.toml +++ b/crates/syntax/Cargo.toml @@ -15,7 +15,6 @@ itertools = "0.10.0" rowan = "0.13.0" rustc_lexer = { version = "725.0.0", package = "rustc-ap-rustc_lexer" } rustc-hash = "1.1.0" -arrayvec = "0.7" once_cell = "1.3.1" indexmap = "1.4.0" smol_str = "0.1.15" diff --git a/crates/vfs-notify/Cargo.toml b/crates/vfs-notify/Cargo.toml index ecd589c58275..2f0af5e72148 100644 --- a/crates/vfs-notify/Cargo.toml +++ b/crates/vfs-notify/Cargo.toml @@ -10,7 +10,6 @@ doctest = false [dependencies] tracing = "0.1" -rustc-hash = "1.0" jod-thread = "0.1.0" walkdir = "2.3.1" crossbeam-channel = "0.5.0" From 15312aab58c7ec29f2d1e548484f886b2e371bbb Mon Sep 17 00:00:00 2001 From: Giles Cope Date: Sat, 11 Sep 2021 16:26:36 +0100 Subject: [PATCH 2/2] removing seemingly unused dev deps. --- Cargo.lock | 5 ----- crates/hir_expand/Cargo.toml | 1 - crates/hir_ty/Cargo.toml | 1 - crates/mbe/Cargo.toml | 1 - crates/proc_macro_srv/Cargo.toml | 3 --- crates/rust-analyzer/Cargo.toml | 1 - 6 files changed, 12 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5139b2b95cbf..3a7e6ea676fa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -526,7 +526,6 @@ dependencies = [ "profile", "rustc-hash", "syntax", - "test_utils", "tracing", "tt", ] @@ -895,7 +894,6 @@ dependencies = [ "cov-mark", "expect-test", "parser", - "profile", "rustc-hash", "smallvec", "stdx", @@ -1140,7 +1138,6 @@ dependencies = [ name = "proc_macro_srv" version = "0.0.0" dependencies = [ - "cargo_metadata", "expect-test", "libloading", "mbe", @@ -1149,8 +1146,6 @@ dependencies = [ "paths", "proc_macro_api", "proc_macro_test", - "test_utils", - "toolchain", "tt", ] diff --git a/crates/hir_expand/Cargo.toml b/crates/hir_expand/Cargo.toml index 5655a8fdffea..b39de7cfaeea 100644 --- a/crates/hir_expand/Cargo.toml +++ b/crates/hir_expand/Cargo.toml @@ -25,5 +25,4 @@ mbe = { path = "../mbe", version = "0.0.0" } limit = { path = "../limit", version = "0.0.0" } [dev-dependencies] -test_utils = { path = "../test_utils" } expect-test = "1.1" diff --git a/crates/hir_ty/Cargo.toml b/crates/hir_ty/Cargo.toml index e44d2395480d..7566bf687bf9 100644 --- a/crates/hir_ty/Cargo.toml +++ b/crates/hir_ty/Cargo.toml @@ -40,4 +40,3 @@ tracing-subscriber = { version = "0.2", default-features = false, features = [ "registry", ] } tracing-tree = { version = "0.1.10" } -once_cell = { version = "1.5.0", features = ["unstable"] } diff --git a/crates/mbe/Cargo.toml b/crates/mbe/Cargo.toml index 1a522e907044..22bda5766905 100644 --- a/crates/mbe/Cargo.toml +++ b/crates/mbe/Cargo.toml @@ -21,5 +21,4 @@ tt = { path = "../tt", 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 939e41f8455a..159e2bfa40f5 100644 --- a/crates/proc_macro_srv/Cargo.toml +++ b/crates/proc_macro_srv/Cargo.toml @@ -25,9 +25,6 @@ paths = { path = "../paths", version = "0.0.0" } proc_macro_api = { path = "../proc_macro_api", version = "0.0.0" } [dev-dependencies] -test_utils = { path = "../test_utils" } -toolchain = { path = "../toolchain" } -cargo_metadata = "0.14" expect-test = "1.1.0" # used as proc macro test targets diff --git a/crates/rust-analyzer/Cargo.toml b/crates/rust-analyzer/Cargo.toml index a39f57e4bdd4..1dfa23414deb 100644 --- a/crates/rust-analyzer/Cargo.toml +++ b/crates/rust-analyzer/Cargo.toml @@ -73,7 +73,6 @@ xshell = "0.1" test_utils = { path = "../test_utils" } sourcegen = { path = "../sourcegen" } mbe = { path = "../mbe" } -tt = { path = "../tt" } [features] jemalloc = ["jemallocator", "profile/jemalloc"]