pub struct PreCommitConfig {
pub generate_readmes: bool,
pub rustfmt: bool,
pub cargo_lock: bool,
pub arborium: bool,
pub edition_2024: bool,
pub external_path_deps: bool,
pub internal_dev_deps_release_plz: bool,
}Expand description
Configuration for pre-commit hooks.
Fields§
§generate_readmes: boolDeprecated: README generation has been removed from captain.
If enabled, captain will print a recommendation to use cargo-reedme.
rustfmt: boolFormat staged Rust files with rustfmt.
cargo_lock: boolStage Cargo.lock changes automatically.
arborium: boolCreate arborium-header.html files for enhanced rustdoc syntax highlighting.
edition_2024: boolRequire Rust edition 2024 in all workspace crates.
external_path_deps: boolCheck for path dependencies pointing outside the workspace. These are typically local development overrides that should not be committed.
internal_dev_deps_release_plz: boolCheck for internal dev-dependencies that can break release-plz.
Trait Implementations§
Source§impl Clone for PreCommitConfig
impl Clone for PreCommitConfig
Source§fn clone(&self) -> PreCommitConfig
fn clone(&self) -> PreCommitConfig
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 PreCommitConfig
impl Debug for PreCommitConfig
Source§impl Default for PreCommitConfig
impl Default for PreCommitConfig
Auto Trait Implementations§
impl Freeze for PreCommitConfig
impl RefUnwindSafe for PreCommitConfig
impl Send for PreCommitConfig
impl Sync for PreCommitConfig
impl Unpin for PreCommitConfig
impl UnsafeUnpin for PreCommitConfig
impl UnwindSafe for PreCommitConfig
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