pub struct PrePushConfig {
pub clippy: bool,
pub clippy_features: Option<Vec<String>>,
pub nextest: bool,
pub doc_tests: bool,
pub doc_test_features: Option<Vec<String>>,
pub docs: bool,
pub docs_features: Option<Vec<String>>,
pub cargo_shear: bool,
}Expand description
Configuration for pre-push hooks.
Fields§
§clippy: boolRun cargo clippy with warnings as errors.
clippy_features: Option<Vec<String>>Features to pass to clippy. If None, uses --all-features.
nextest: boolRun tests via cargo nextest.
doc_tests: boolRun documentation tests via cargo test --doc.
doc_test_features: Option<Vec<String>>Features to pass to doc tests. If None, uses --all-features.
docs: boolBuild documentation with cargo doc and treat warnings as errors.
docs_features: Option<Vec<String>>Features to pass to rustdoc. If None, uses --all-features.
cargo_shear: boolCheck for unused dependencies with cargo-shear.
Trait Implementations§
Source§impl Clone for PrePushConfig
impl Clone for PrePushConfig
Source§fn clone(&self) -> PrePushConfig
fn clone(&self) -> PrePushConfig
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 PrePushConfig
impl Debug for PrePushConfig
Source§impl Default for PrePushConfig
impl Default for PrePushConfig
Auto Trait Implementations§
impl Freeze for PrePushConfig
impl RefUnwindSafe for PrePushConfig
impl Send for PrePushConfig
impl Sync for PrePushConfig
impl Unpin for PrePushConfig
impl UnsafeUnpin for PrePushConfig
impl UnwindSafe for PrePushConfig
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