[go: up one dir, main page]

Crate cargo_deny[][src]

Expand description

❌ 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 --locked cargo-deny && cargo deny init && cargo deny check

Usage

Install cargo-deny

cargo install --locked 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

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

Traits

Functions

Type Definitions

A crate’s unique identifier