aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/src/cargo_target_spec.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-02-18 11:25:26 +0000
committerAleksey Kladov <[email protected]>2020-02-18 11:25:26 +0000
commit4d307ff8024c8d2d533bc3ab7aac1d63ca5c5977 (patch)
tree08e5d3f64f545d402b1a9f4fe65330ca56e1d741 /crates/ra_lsp_server/src/cargo_target_spec.rs
parent1f142d79ed251db58570a5863b06c8826221f9c9 (diff)
Fully document ra_lsp_server
Diffstat (limited to 'crates/ra_lsp_server/src/cargo_target_spec.rs')
-rw-r--r--crates/ra_lsp_server/src/cargo_target_spec.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/crates/ra_lsp_server/src/cargo_target_spec.rs b/crates/ra_lsp_server/src/cargo_target_spec.rs
index d0a52670a..53751aafb 100644
--- a/crates/ra_lsp_server/src/cargo_target_spec.rs
+++ b/crates/ra_lsp_server/src/cargo_target_spec.rs
@@ -1,10 +1,14 @@
1//! FIXME: write short doc here 1//! See `CargoTargetSpec`
2 2
3use ra_ide::{FileId, RunnableKind, TestId}; 3use ra_ide::{FileId, RunnableKind, TestId};
4use ra_project_model::{self, ProjectWorkspace, TargetKind}; 4use ra_project_model::{self, ProjectWorkspace, TargetKind};
5 5
6use crate::{world::WorldSnapshot, Result}; 6use crate::{world::WorldSnapshot, Result};
7 7
8/// Abstract representation of Cargo target.
9///
10/// We use it to cook up the set of cli args we need to pass to Cargo to
11/// build/test/run the target.
8pub(crate) struct CargoTargetSpec { 12pub(crate) struct CargoTargetSpec {
9 pub(crate) package: String, 13 pub(crate) package: String,
10 pub(crate) target: String, 14 pub(crate) target: String,