pub struct DependencyGraph { /* private fields */ }Expand description
Represents a graph of package dependencies to be resolved and installed.
This structure helps determine which packages need to be installed, including any dependencies they require.
Implementations§
Source§impl DependencyGraph
impl DependencyGraph
Sourcepub fn resolve(&self, manifest: &PackageManifest) -> HashMap<String, String>
pub fn resolve(&self, manifest: &PackageManifest) -> HashMap<String, String>
Resolves all dependencies for the requested packages.
This method:
- Starts with the user-requested packages
- For each package, adds its dependencies to the list to process
- Continues until all dependencies are resolved
§Parameters
manifest- A PackageManifest of all available packages
§Returns
A HashMap where keys are filenames and values are download URLs for all required packages
Sourcepub fn resolve_interned(
&self,
manifest: &InternedPackageManifest,
) -> HashMap<String, String>
pub fn resolve_interned( &self, manifest: &InternedPackageManifest, ) -> HashMap<String, String>
Resolves all dependencies for the requested packages using an interned manifest.
This method:
- Starts with the user-requested packages
- For each package, adds its dependencies to the list to process
- Continues until all dependencies are resolved
§Parameters
manifest- An InternedPackageManifest of all available packages
§Returns
A HashMap where keys are filenames and values are download URLs for all required packages
Trait Implementations§
Source§impl Debug for DependencyGraph
impl Debug for DependencyGraph
Source§impl<'de> Deserialize<'de> for DependencyGraph
impl<'de> Deserialize<'de> for DependencyGraph
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DependencyGraph
impl RefUnwindSafe for DependencyGraph
impl Send for DependencyGraph
impl Sync for DependencyGraph
impl Unpin for DependencyGraph
impl UnsafeUnpin for DependencyGraph
impl UnwindSafe for DependencyGraph
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