pub struct Found {
pub nix: Option<Nix>,
pub pixi: Option<PathBuf>,
pub mise: Option<PathBuf>,
pub system: Option<SystemInstaller>,
pub containers: Option<Runtime>,
pub container_image: Option<String>,
}Expand description
The package managers and tools found on this machine. Found::detect looks on
PATH; tests build one by hand to hide what they don’t want used (e.g. Nix, to test
the pixi installer on a machine that has both).
Fields§
§nix: Option<Nix>§pixi: Option<PathBuf>The pixi program.
mise: Option<PathBuf>The mise program.
system: Option<SystemInstaller>Homebrew or winget, for install_system_packages (the last resort).
containers: Option<Runtime>Docker or Podman, for workspaces whose commands run in a container.
container_image: Option<String>The image for containers without a devcontainer.json (default container::DEFAULT_IMAGE).
Implementations§
Source§impl Found
impl Found
Sourcepub fn detect(data_dir: Option<&Path>) -> Self
pub fn detect(data_dir: Option<&Path>) -> Self
Look for everything. data_dir holds caches and installed packages.
Sourcepub fn detect_with(
data_dir: Option<&Path>,
container_image: Option<String>,
container_runtime: Option<&str>,
) -> Self
pub fn detect_with( data_dir: Option<&Path>, container_image: Option<String>, container_runtime: Option<&str>, ) -> Self
Like Found::detect, with the settings for containers: the default image and
docker / podman (else Podman if installed, else Docker).
Trait Implementations§
Auto Trait Implementations§
impl Forget for Found
impl Freeze for Found
impl RefUnwindSafe for Found
impl Send for Found
impl Sync for Found
impl Unpin for Found
impl UnsafeUnpin for Found
impl UnwindSafe for Found
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