From 59e1207dac8eb9cc56a72ee685bd4f143683d2bb Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 18 Feb 2020 11:56:18 +0100 Subject: [PATCH] Better folder structure --- crates/ra_lsp_server/Cargo.toml | 5 +++++ crates/ra_lsp_server/src/{ => bin}/args.rs | 0 crates/ra_lsp_server/src/{ => bin}/main.rs | 0 xtask/tests/tidy-tests/docs.rs | 1 - 4 files changed, 5 insertions(+), 1 deletion(-) rename crates/ra_lsp_server/src/{ => bin}/args.rs (100%) rename crates/ra_lsp_server/src/{ => bin}/main.rs (100%) diff --git a/crates/ra_lsp_server/Cargo.toml b/crates/ra_lsp_server/Cargo.toml index da523ba8a2..151ca3da51 100644 --- a/crates/ra_lsp_server/Cargo.toml +++ b/crates/ra_lsp_server/Cargo.toml @@ -3,10 +3,15 @@ edition = "2018" name = "ra_lsp_server" version = "0.1.0" authors = ["rust-analyzer developers"] +autobins = false [lib] doctest = false +[[bin]] +name = "ra_lsp_server" +path = "./src/bin/main.rs" + [dependencies] anyhow = "1.0" crossbeam-channel = "0.4" diff --git a/crates/ra_lsp_server/src/args.rs b/crates/ra_lsp_server/src/bin/args.rs similarity index 100% rename from crates/ra_lsp_server/src/args.rs rename to crates/ra_lsp_server/src/bin/args.rs diff --git a/crates/ra_lsp_server/src/main.rs b/crates/ra_lsp_server/src/bin/main.rs similarity index 100% rename from crates/ra_lsp_server/src/main.rs rename to crates/ra_lsp_server/src/bin/main.rs diff --git a/xtask/tests/tidy-tests/docs.rs b/xtask/tests/tidy-tests/docs.rs index b2571df258..62c4f84413 100644 --- a/xtask/tests/tidy-tests/docs.rs +++ b/xtask/tests/tidy-tests/docs.rs @@ -77,7 +77,6 @@ fn no_docs_comments() { "ra_hir", "ra_hir_expand", "ra_ide", - "ra_lsp_server", "ra_mbe", "ra_parser", "ra_prof",