Crate cargo_deny[−][src]
Expand description
❌ cargo-deny
cargo-deny is a cargo plugin for linting your dependencies. See the book 📖 for in-depth documentation.
Quickstart
cargo install --locked cargo-deny && cargo deny init && cargo deny checkUsage
Install cargo-deny
cargo install --locked cargo-denyInitialize your project
cargo deny initCheck your crates
cargo deny checkLicenses
The licenses check is used to verify that every crate you use has license terms you find acceptable.
cargo deny check licensesBans
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 bansAdvisories
The advisories check is used to detect issues for crates by looking in an advisory database.
cargo deny check advisoriesSources
The sources check ensures crates only come from sources you trust.
cargo deny check sourcesModules
Configuration and logic for checking crate licenses
This is basically a copy of some of cargo-edit, which is focused on being a CLI and has a lot of dependencies that can be annoying to upgrade throughout our graph, so for now we just copy some pieces we need
Structs
Common context for the various checks. Some checks require additional information though.
Unique identifier for a source of packages.
An owned, mutable UTF-8 path (akin to String).
SemVer version as defined by https://semver.org.
Enums
The dependency kind. A crate can depend on the same crate multiple times with different dependency kinds
The possible lint levels for the various lints. These function similarly to the standard Rust lint levels