pub struct BuildTarget {
pub id: BuildTargetIdentifier,
pub display_name: Option<String>,
pub base_directory: Option<String>,
pub tags: Vec<BuildTargetTag>,
pub capabilities: BuildTargetCapabilities,
pub language_ids: Vec<Language>,
pub dependencies: Vec<BuildTargetIdentifier>,
}Expand description
Build target contains metadata about an artifact (for example library, test, or binary artifact)
Fields§
§id: BuildTargetIdentifierThe target’s unique identifier
display_name: Option<String>A human readable name for this target. May be presented in the user interface. Should be unique if possible. The id.uri is used if None.
base_directory: Option<String>The directory where this target belongs to. Multiple build targets are allowed to map to the same base directory, and a build target is not required to have a base directory. A base directory does not determine the sources of a target, see “buildTarget/sources”.
Free-form string tags to categorize or label this build target. For example, can be used by the client to:
- customize how the target should be translated into the client’s project model.
- group together different but related targets in the user interface.
- display icons or colors in the user interface.
Pre-defined tags are listed in
BuildTargetTagbut clients and servers are free to define new tags for custom purposes.
capabilities: BuildTargetCapabilitiesThe capabilities of this build target.
language_ids: Vec<Language>The set of languages that this target contains. The ID string for each language is defined in the LSP.
dependencies: Vec<BuildTargetIdentifier>The direct upstream build target dependencies of this build target