pub struct Vcpkg;Expand description
vcpkg adapter. Opt-in; see the module comment.
Trait Implementations§
Source§impl PackageManager for Vcpkg
impl PackageManager for Vcpkg
Source§fn bloat_dirs(&self, path: &Path) -> Vec<BloatDir>
fn bloat_dirs(&self, path: &Path) -> Vec<BloatDir>
vcpkg_installed/, which vcpkg creates beside the manifest it read. build/ next
to it belongs to CMake, and the name alone never says whose it is.
Source§fn enforce_lockfile(&self, path: &Path, _policy: EnforcePolicy) -> Result<()>
fn enforce_lockfile(&self, path: &Path, _policy: EnforcePolicy) -> Result<()>
The manifest is the proof, as it is for Maven and SwiftPM — with one extra
condition. vcpkg.json is also the file every port carries, and a port manifest
describes a package rather than an installation: nothing rebuilds a
vcpkg_installed/ from it. What separates the two is a dependencies list, so
that is what is checked. A manifest declaring nothing to install cannot account
for the directory beside it either, which is the same refusal for a different
reason.
Running vcpkg install --dry-run here instead would need a registry checkout and
a network fetch in the middle of a delete pass, for no stronger answer than “the
file that rebuilds this is present and names dependencies”.
Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
Source§fn detect(&self, path: &Path) -> bool
fn detect(&self, path: &Path) -> bool
Source§fn restore(&self, _path: &Path, _timeout: Duration) -> Result<()>
fn restore(&self, _path: &Path, _timeout: Duration) -> Result<()>
dev-prune restore). Read moreSource§fn lockfiles(&self) -> &'static [&'static str]
fn lockfiles(&self) -> &'static [&'static str]
Source§fn opt_in(&self) -> bool
fn opt_in(&self) -> bool
Source§fn restore_named(
&self,
project_path: &Path,
dir_name: &str,
runtime: Option<&str>,
timeout: Duration,
) -> Result<()>
fn restore_named( &self, project_path: &Path, dir_name: &str, runtime: Option<&str>, timeout: Duration, ) -> Result<()>
PackageManager::restore, told the name the pruned directory had. Read moreAuto Trait Implementations§
impl Freeze for Vcpkg
impl RefUnwindSafe for Vcpkg
impl Send for Vcpkg
impl Sync for Vcpkg
impl Unpin for Vcpkg
impl UnsafeUnpin for Vcpkg
impl UnwindSafe for Vcpkg
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more