mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-15 01:17:27 +00:00
Document project_model::TargetData
This adds a description for `TargetData` and all its fields.
This commit is contained in:
parent
0abe487f1c
commit
ef636ba346
1 changed files with 6 additions and 0 deletions
|
@ -118,12 +118,18 @@ pub struct PackageDependency {
|
|||
pub name: String,
|
||||
}
|
||||
|
||||
/// Information associated with a package's target
|
||||
#[derive(Debug, Clone, Eq, PartialEq)]
|
||||
pub struct TargetData {
|
||||
/// Package that provided this target
|
||||
pub package: Package,
|
||||
/// Name as given in the `Cargo.toml` or generated from the file name
|
||||
pub name: String,
|
||||
/// Path to the main source file of the target
|
||||
pub root: AbsPathBuf,
|
||||
/// Kind of target
|
||||
pub kind: TargetKind,
|
||||
/// Is this target a proc-macro
|
||||
pub is_proc_macro: bool,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue