Skip to main content

Packager

Trait Packager 

Source
pub trait Packager: Send + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn files(&self) -> &[&str];
}
Expand description

A package manager, recognised by the files it leaves in a project.

PHP: Utopia\Detector\Detection\Packager.

Required Methods§

Source

fn name(&self) -> &str

The packager’s name, such as pnpm.

PHP: getName().

Source

fn files(&self) -> &[&str]

The file names that reveal it, such as pnpm-lock.yaml.

PHP: getFiles().

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§