#cargo #license #spdx #ci #advisories

bin+lib cargo-deny

Cargo plugin to help you manage large dependency graphs

66 releases

0.14.3 Sep 29, 2023
0.14.1 Aug 2, 2023
0.14.0 Jul 28, 2023
0.13.7 Jan 11, 2023
0.2.6 Jul 27, 2019

#43 in Cargo plugins

Download history 6904/week @ 2023-08-16 8147/week @ 2023-08-23 8182/week @ 2023-08-30 8388/week @ 2023-09-06 7809/week @ 2023-09-13 9012/week @ 2023-09-20 10293/week @ 2023-09-27 9546/week @ 2023-10-04 9555/week @ 2023-10-11 9693/week @ 2023-10-18 10062/week @ 2023-10-25 10371/week @ 2023-11-01 10088/week @ 2023-11-08 9836/week @ 2023-11-15 9212/week @ 2023-11-22 8150/week @ 2023-11-29

39,313 downloads per month
Used in project_ares


10K SLoC

❌ 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.


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


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


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

cargo deny check licenses

licenses output


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


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

cargo deny check advisories

advisories output


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

cargo deny check sources

sources output


Contributor Covenant

We welcome community contributions to this project.

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


Licensed under either of

at your option.


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.


~1.5M SLoC