Skip to main content

Cargo plugin to help you manage large dependency graphs

Project description

❌ cargo-deny

Cargo plugin for linting your dependencies

Embark Opensource Embark Discord Crates.io API Docs Docs Minimum Stable Rust Version SPDX Version dependency status Build Status

See the book 📕 for in-depth documentation.

To run on CI as a GitHub Action, see cargo-deny-action.

Please Note: This is a tool that we use (and like!) and it makes sense to us to release it as open source. However, we can’t take any responsibility for your use of the tool, if it will function correctly or fulfil your needs. No functionality in - or information provided by - cargo-deny constitutes legal advice.

Quickstart

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

Usage

Install cargo-deny

If you want to use cargo-deny without having cargo installed, build cargo-deny with the standalone feature. This can be useful in Docker Images.

cargo install --locked cargo-deny

# Or, if you're an Arch user
pacman -S 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

licenses output

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

bans output

Advisories

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

cargo deny check advisories

advisories output

Sources

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

cargo deny check sources

sources output

Contributing

Contributor Covenant

We welcome community contributions to this project.

Please read our Contributor Guide for more information on how to get started.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

cargo_deny-0.14.2-py3-none-win_amd64.whl (7.5 MB view hashes)

Uploaded Python 3 Windows x86-64

cargo_deny-0.14.2-py3-none-win32.whl (7.1 MB view hashes)

Uploaded Python 3 Windows x86

cargo_deny-0.14.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (10.8 MB view hashes)

Uploaded Python 3 manylinux: glibc 2.17+ x86-64

cargo_deny-0.14.2-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl (11.3 MB view hashes)

Uploaded Python 3 manylinux: glibc 2.17+ i686

cargo_deny-0.14.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (10.6 MB view hashes)

Uploaded Python 3 manylinux: glibc 2.17+ ARM64

cargo_deny-0.14.2-py3-none-macosx_11_0_arm64.whl (8.4 MB view hashes)

Uploaded Python 3 macOS 11.0+ ARM64

cargo_deny-0.14.2-py3-none-macosx_10_7_x86_64.whl (8.8 MB view hashes)

Uploaded Python 3 macOS 10.7+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page