From 8c72c00abdbf9efe54b0d84d7a9d24b01ae6762a Mon Sep 17 00:00:00 2001 From: Shotaro Yamada Date: Sat, 12 Oct 2019 07:48:23 +0900 Subject: Remove smol_str dependency from ra_syntax --- crates/ra_syntax/Cargo.toml | 4 ---- crates/ra_tt/Cargo.toml | 4 +++- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'crates') diff --git a/crates/ra_syntax/Cargo.toml b/crates/ra_syntax/Cargo.toml index 9bc85404a..b2d87ba03 100644 --- a/crates/ra_syntax/Cargo.toml +++ b/crates/ra_syntax/Cargo.toml @@ -15,10 +15,6 @@ rustc-hash = "1.0.1" arrayvec = "0.4.10" once_cell = "1.2.0" -# ideally, `serde` should be enabled by `ra_lsp_server`, but we enable it here -# to reduce number of compilations -smol_str = { version = "0.1.12", features = ["serde"] } - ra_text_edit = { path = "../ra_text_edit" } ra_parser = { path = "../ra_parser" } diff --git a/crates/ra_tt/Cargo.toml b/crates/ra_tt/Cargo.toml index 3328d312f..3fcc7f085 100644 --- a/crates/ra_tt/Cargo.toml +++ b/crates/ra_tt/Cargo.toml @@ -5,4 +5,6 @@ version = "0.1.0" authors = ["rust-analyzer developers"] [dependencies] -smol_str = "0.1.9" +# ideally, `serde` should be enabled by `ra_lsp_server`, but we enable it here +# to reduce number of compilations +smol_str = { version = "0.1.12", features = ["serde"] } -- cgit v1.2.3 From 5ca6281164d73da7c9b22650ea7d80077908ffbf Mon Sep 17 00:00:00 2001 From: Shotaro Yamada Date: Sat, 12 Oct 2019 08:00:54 +0900 Subject: Remove unused dependencies --- crates/ra_assists/Cargo.toml | 3 --- crates/ra_lsp_server/Cargo.toml | 2 -- crates/ra_mbe/Cargo.toml | 1 - 3 files changed, 6 deletions(-) (limited to 'crates') diff --git a/crates/ra_assists/Cargo.toml b/crates/ra_assists/Cargo.toml index d3b6aeb36..beebccbd9 100644 --- a/crates/ra_assists/Cargo.toml +++ b/crates/ra_assists/Cargo.toml @@ -6,11 +6,8 @@ authors = ["rust-analyzer developers"] [dependencies] format-buf = "1.0.0" -once_cell = "1.0.1" join_to_string = "0.1.3" itertools = "0.8.0" -arrayvec = "0.4.10" -rustc-hash = "1.0.1" rustc_lexer = "0.1.0" ra_syntax = { path = "../ra_syntax" } diff --git a/crates/ra_lsp_server/Cargo.toml b/crates/ra_lsp_server/Cargo.toml index aedc55a95..46a0f958c 100644 --- a/crates/ra_lsp_server/Cargo.toml +++ b/crates/ra_lsp_server/Cargo.toml @@ -18,8 +18,6 @@ parking_lot = "0.9.0" jod-thread = "0.1.0" ra_vfs = "0.4.0" ra_syntax = { path = "../ra_syntax" } -ra_db = { path = "../ra_db" } -ra_cfg = { path = "../ra_cfg" } ra_text_edit = { path = "../ra_text_edit" } ra_ide_api = { path = "../ra_ide_api" } lsp-server = "0.2.0" diff --git a/crates/ra_mbe/Cargo.toml b/crates/ra_mbe/Cargo.toml index b058dde91..e8ef2457b 100644 --- a/crates/ra_mbe/Cargo.toml +++ b/crates/ra_mbe/Cargo.toml @@ -8,7 +8,6 @@ authors = ["rust-analyzer developers"] ra_syntax = { path = "../ra_syntax" } ra_parser = { path = "../ra_parser" } tt = { path = "../ra_tt", package = "ra_tt" } -itertools = "0.8.0" rustc-hash = "1.0.0" smallvec = "0.6.9" log = "0.4.5" -- cgit v1.2.3 From e4ffa79b3eb6e5bfc0c216d7af3811c56caf2101 Mon Sep 17 00:00:00 2001 From: Shotaro Yamada Date: Mon, 14 Oct 2019 19:56:29 +0900 Subject: Enable `serde` feature in ra_syntax/Cargo.toml --- crates/ra_syntax/Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crates') diff --git a/crates/ra_syntax/Cargo.toml b/crates/ra_syntax/Cargo.toml index b2d87ba03..68c594202 100644 --- a/crates/ra_syntax/Cargo.toml +++ b/crates/ra_syntax/Cargo.toml @@ -15,6 +15,11 @@ rustc-hash = "1.0.1" arrayvec = "0.4.10" once_cell = "1.2.0" +# This crate transitively depends on `smol_str` via `rowan`. +# ideally, `serde` should be enabled by `ra_lsp_server`, but we enable it here +# to reduce number of compilations +smol_str = { version = "0.1.12", features = ["serde"] } + ra_text_edit = { path = "../ra_text_edit" } ra_parser = { path = "../ra_parser" } -- cgit v1.2.3