Rename is_member to is_local

This commit is contained in:
Jonas Schievink 2021-09-07 17:29:58 +02:00
parent 8a4c35a068
commit e241015a75
3 changed files with 18 additions and 18 deletions

View file

@ -135,8 +135,8 @@ pub struct PackageData {
pub manifest: ManifestPath,
/// Targets provided by the crate (lib, bin, example, test, ...)
pub targets: Vec<Target>,
/// Is this package a member of the current workspace
pub is_member: bool,
/// Does this package come from the local filesystem (and is editable)?
pub is_local: bool,
/// List of packages this package depends on
pub dependencies: Vec<PackageDependency>,
/// Rust edition for this package
@ -308,7 +308,7 @@ impl CargoWorkspace {
});
// We treat packages without source as "local" packages. That includes all members of
// the current workspace, as well as any path dependency outside the workspace.
let is_member = meta_pkg.source.is_none();
let is_local = meta_pkg.source.is_none();
let pkg = packages.alloc(PackageData {
id: id.repr.clone(),
@ -316,7 +316,7 @@ impl CargoWorkspace {
version: version.clone(),
manifest: AbsPathBuf::assert(PathBuf::from(&manifest_path)).try_into().unwrap(),
targets: Vec::new(),
is_member,
is_local,
edition,
dependencies: Vec::new(),
features: meta_pkg.features.clone().into_iter().collect(),