diff options
author | Aleksey Kladov <[email protected]> | 2020-02-18 11:25:26 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-02-18 11:25:26 +0000 |
commit | 4d307ff8024c8d2d533bc3ab7aac1d63ca5c5977 (patch) | |
tree | 08e5d3f64f545d402b1a9f4fe65330ca56e1d741 /crates/ra_lsp_server/src/cargo_target_spec.rs | |
parent | 1f142d79ed251db58570a5863b06c8826221f9c9 (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.rs | 6 |
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 | ||
3 | use ra_ide::{FileId, RunnableKind, TestId}; | 3 | use ra_ide::{FileId, RunnableKind, TestId}; |
4 | use ra_project_model::{self, ProjectWorkspace, TargetKind}; | 4 | use ra_project_model::{self, ProjectWorkspace, TargetKind}; |
5 | 5 | ||
6 | use crate::{world::WorldSnapshot, Result}; | 6 | use 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. | ||
8 | pub(crate) struct CargoTargetSpec { | 12 | pub(crate) struct CargoTargetSpec { |
9 | pub(crate) package: String, | 13 | pub(crate) package: String, |
10 | pub(crate) target: String, | 14 | pub(crate) target: String, |