pub struct Installer { /* private fields */ }Expand description
Discovers, lists, reads, and installs context from resolved Cargo dependencies.
Implementations§
Source§impl Installer
impl Installer
Sourcepub fn discover(root: impl Into<PathBuf>) -> Result<Self>
pub fn discover(root: impl Into<PathBuf>) -> Result<Self>
Resolve the project’s Cargo packages and find dependencies with context/ directories.
pub fn root(&self) -> &Path
pub fn context_path(&self) -> &Path
pub fn specifications(&self) -> &[Specification]
pub fn find_specification( &self, selector: &str, ) -> Result<Option<Specification>>
Sourcepub fn providers(&self) -> Result<Vec<Package>>
pub fn providers(&self) -> Result<Vec<Package>>
Load providers with context directories, including empty providers.
Sourcepub fn find_provider(&self, selector: &str) -> Result<Option<Package>>
pub fn find_provider(&self, selector: &str) -> Result<Option<Package>>
Load one provider by its package selector.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Installer
impl RefUnwindSafe for Installer
impl Send for Installer
impl Sync for Installer
impl Unpin for Installer
impl UnsafeUnpin for Installer
impl UnwindSafe for Installer
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