]> git.lizzy.rs Git - rust.git/blobdiff - crates/project_model/src/cargo_workspace.rs
Rename `is_member` to `is_local`
[rust.git] / crates / project_model / src / cargo_workspace.rs
index b15c53a1303a5ee1585d68c8f6623cb63a0dd326..851a264ca37c4ae8b6c4e909be8e04bab17d6ab5 100644 (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 @@ pub fn new(mut meta: cargo_metadata::Metadata) -> 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 @@ pub fn new(mut meta: cargo_metadata::Metadata) -> 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(),