pub struct Config {
pub ignore: Vec<String>,
pub base_branch: String,
pub latest_package: Option<String>,
pub publish: HashMap<String, String>,
pub update_on: HashMap<String, Vec<String>>,
}Expand description
Loaded from .changepacks/config.json, controls ignore patterns, base branch, publish commands, and update-on rules.
Configuration can specify custom publish commands per language or per project path, ignore patterns using globs, and forced update rules for dependent packages.
Fields§
§ignore: Vec<String>Glob patterns for files/projects to ignore (e.g., “examples/**”)
base_branch: StringBase branch to compare against for change detection (default: “main”)
latest_package: Option<String>Optional path to the default main package for versioning
publish: HashMap<String, String>Custom publish commands by language key or project path
update_on: HashMap<String, Vec<String>>Dependency rules for forced updates. Key: glob pattern for trigger packages (e.g., “crates/*”) Value: list of package paths that must be updated when trigger matches
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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