pub trait VersionFileHandler: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn manifest_names(&self) -> &[&str];
fn lock_file_names(&self) -> &[&str];
fn bump(
&self,
path: &Path,
new_version: &str,
) -> Result<Vec<PathBuf>, ReleaseError>;
// Provided method
fn detect(&self, dir: &Path) -> bool { ... }
}Expand description
Trait encapsulating detection, bumping, workspace discovery, and lock file association for a single ecosystem (Cargo, npm, Python, etc.).
Required Methods§
Sourcefn manifest_names(&self) -> &[&str]
fn manifest_names(&self) -> &[&str]
Primary manifest filenames, e.g. ["Cargo.toml"].
Sourcefn lock_file_names(&self) -> &[&str]
fn lock_file_names(&self) -> &[&str]
Associated lock file names, e.g. ["Cargo.lock"].