pub struct WorkspaceDependencyGraph { /* private fields */ }Implementations§
Source§impl WorkspaceDependencyGraph
impl WorkspaceDependencyGraph
Sourcepub fn build(project: &CargoProject) -> Result<Self, ProjectError>
pub fn build(project: &CargoProject) -> Result<Self, ProjectError>
Builds the dependency graph from the workspace, considering only [dependencies] and
[build-dependencies].
§Errors
Returns ProjectError if any member’s manifest cannot be read or parsed.
pub fn transitive_dependents(&self, package: &str) -> HashSet<&str>
pub fn transitive_dependents_of_set<'a>( &'a self, packages: &[&str], ) -> HashSet<&'a str>
pub fn direct_dependencies(&self, package: &str) -> HashSet<&str>
Auto Trait Implementations§
impl Freeze for WorkspaceDependencyGraph
impl RefUnwindSafe for WorkspaceDependencyGraph
impl Send for WorkspaceDependencyGraph
impl Sync for WorkspaceDependencyGraph
impl Unpin for WorkspaceDependencyGraph
impl UnsafeUnpin for WorkspaceDependencyGraph
impl UnwindSafe for WorkspaceDependencyGraph
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more