[][src]Crate cargo_deny

❌ cargo-deny

Build Status Latest version Docs API Docs SPDX Version Contributor Covenant Embark

cargo-deny is a cargo plugin for linting your dependencies. See the book 📖 for in-depth documentation.

Quickstart

cargo install cargo-deny && cargo deny init && cargo deny check

Usage

Install cargo-deny

cargo install cargo-deny

Initialize your project

cargo deny init

Check your crates

cargo deny check

Licenses

The licenses check is used to verify that every crate you use has license terms you find acceptable.

cargo deny check licenses

Bans

The bans check is used to deny (or allow) specific crates, as well as detect and handle multiple versions of the same crate.

cargo deny check bans

Advisories

The advisories check is used to detect issues for crates by looking in an advisory database.

cargo deny check advisories

Sources

The sources check ensures crates only come from sources you trust.

cargo deny check sources

Modules

advisories
bans
diag
licenses

Configuration and logic for checking crate licenses

sources

Structs

CheckCtx

Common context for the various checks. Some checks require additional information though.

Krate
SourceId

Unique identifier for a source of packages.

Spanned
Version

Represents a version number conforming to the semantic versioning scheme.

Enums

DepKind

The dependency kind. A crate can depend on the same crate multiple times with different dependency kinds

LintLevel

The possible lint levels for the various lints. These function similarly to the standard Rust lint levels

Traits

UnvalidatedConfig

Functions

binary_search
contains
hash

Type Definitions

Kid

A crate's unique identifier

Krates