We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
is_member_id
1 parent fc00223 commit b729060Copy full SHA for b729060
src/cargo/core/workspace.rs
@@ -591,6 +591,11 @@ impl<'gctx> Workspace<'gctx> {
591
self.member_ids.contains(&pkg.package_id())
592
}
593
594
+ /// Returns true if the given package_id is a member of the workspace.
595
+ pub fn is_member_id(&self, package_id: PackageId) -> bool {
596
+ self.member_ids.contains(&package_id)
597
+ }
598
+
599
pub fn is_ephemeral(&self) -> bool {
600
self.is_ephemeral
601
0 commit comments