pub struct PackageConfig {
pub name: String,
pub path: String,
pub tag_prefix: Option<String>,
pub version_files: Vec<String>,
pub changelog: Option<ChangelogConfig>,
pub build_command: Option<String>,
pub stage_files: Vec<String>,
}Expand description
A package in a monorepo. Each package is released independently with its own
version, tags, and changelog. Commits are filtered by path.
packages:
- name: core
path: crates/core
version_files:
- crates/core/Cargo.toml
- name: cli
path: crates/cli
version_files:
- crates/cli/Cargo.tomlFields§
§name: StringPackage name — used in the default tag prefix ({name}/v).
path: StringDirectory path relative to the repo root. Only commits touching this path trigger a release.
tag_prefix: Option<String>Tag prefix override (default: {name}/v).
version_files: Vec<String>Version files override.
changelog: Option<ChangelogConfig>Changelog override.
build_command: Option<String>Build command override.
stage_files: Vec<String>Stage files override.
Trait Implementations§
Source§impl Clone for PackageConfig
impl Clone for PackageConfig
Source§fn clone(&self) -> PackageConfig
fn clone(&self) -> PackageConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PackageConfig
impl Debug for PackageConfig
Source§impl<'de> Deserialize<'de> for PackageConfig
impl<'de> Deserialize<'de> for PackageConfig
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
Auto Trait Implementations§
impl Freeze for PackageConfig
impl RefUnwindSafe for PackageConfig
impl Send for PackageConfig
impl Sync for PackageConfig
impl Unpin for PackageConfig
impl UnsafeUnpin for PackageConfig
impl UnwindSafe for PackageConfig
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