Struct ra_ap_project_model::PackageData [−][src]
pub struct PackageData {Show 13 fields
pub version: Version,
pub name: String,
pub repository: Option<String>,
pub manifest: ManifestPath,
pub targets: Vec<Target>,
pub is_local: bool,
pub is_member: bool,
pub dependencies: Vec<PackageDependency>,
pub edition: Edition,
pub features: FxHashMap<String, Vec<String>>,
pub active_features: Vec<String>,
pub id: String,
pub metadata: RustAnalyzerPackageMetaData,
}
Expand description
Information associated with a cargo crate
Fields
version: Version
Version given in the Cargo.toml
name: String
Name as given in the Cargo.toml
repository: Option<String>
Repository as given in the Cargo.toml
manifest: ManifestPath
Path containing the Cargo.toml
targets: Vec<Target>
Targets provided by the crate (lib, bin, example, test, …)
is_local: bool
Does this package come from the local filesystem (and is editable)?
is_member: bool
dependencies: Vec<PackageDependency>
List of packages this package depends on
edition: Edition
Rust edition for this package
features: FxHashMap<String, Vec<String>>
Features provided by the crate, mapped to the features required by that feature.
active_features: Vec<String>
List of features enabled on this package
id: String
String representation of package id
metadata: RustAnalyzerPackageMetaData
The contents of [package.metadata.rust-analyzer]
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for PackageData
impl Send for PackageData
impl Sync for PackageData
impl Unpin for PackageData
impl UnwindSafe for PackageData
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more