[go: up one dir, main page]

[][src]Struct cargo_deny::ban::Config

pub struct Config {
    pub multiple_versions: LintLevel,
    pub highlight: GraphHighlight,
    pub deny: Vec<Spanned<CrateId>>,
    pub allow: Vec<Spanned<CrateId>>,
    pub skip: Vec<Spanned<CrateId>>,
    pub skip_tree: Vec<Spanned<TreeSkip>>,
}

Fields

multiple_versions: LintLevel

Disallow multiple versions of the same crate

highlight: GraphHighlight

How the duplicate graphs are highlighted

deny: Vec<Spanned<CrateId>>

The crates that will cause us to emit failures

allow: Vec<Spanned<CrateId>>

If specified, means only the listed crates are allowed

skip: Vec<Spanned<CrateId>>

If specified, disregards the crate completely

skip_tree: Vec<Spanned<TreeSkip>>

If specified, disregards the crate's transitive dependencies down to a certain depth

Methods

impl Config[src]

pub fn validate(
    self,
    cfg_file: FileId,
    _contents: &str
) -> Result<ValidConfig, Vec<Diagnostic>>
[src]

Trait Implementations

impl<'de> Deserialize<'de> for Config[src]

Auto Trait Implementations

impl Send for Config

impl Sync for Config

impl Unpin for Config

impl UnwindSafe for Config

impl RefUnwindSafe for Config

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]