pub struct PatchManager { /* private fields */ }Expand description
Manager for Cargo patch operations.
Implementations§
Source§impl PatchManager
impl PatchManager
Sourcepub fn discover_patchable_dependencies(&self) -> Result<Vec<GitDependency>>
pub fn discover_patchable_dependencies(&self) -> Result<Vec<GitDependency>>
Discover all embeddenator repos and their git dependencies.
Sourcepub fn apply_patches(
&self,
deps: &[GitDependency],
verify: bool,
) -> Result<PatchReport>
pub fn apply_patches( &self, deps: &[GitDependency], verify: bool, ) -> Result<PatchReport>
Apply local patches to .cargo/config.toml
Sourcepub fn remove_patches(&self) -> Result<ResetReport>
pub fn remove_patches(&self) -> Result<ResetReport>
Remove all patches from .cargo/config.toml
Sourcepub fn clean_cache(&self) -> Result<()>
pub fn clean_cache(&self) -> Result<()>
Clean cargo cache (useful after removing patches).
Auto Trait Implementations§
impl Freeze for PatchManager
impl RefUnwindSafe for PatchManager
impl Send for PatchManager
impl Sync for PatchManager
impl Unpin for PatchManager
impl UnwindSafe for PatchManager
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