Uses new Rust 2021
|new 0.12.1||May 19, 2022|
|0.11.4||Apr 11, 2022|
|0.11.3||Feb 14, 2022|
|0.11.0||Dec 6, 2021|
|0.2.6||Jul 27, 2019|
#10 in Cargo plugins
15,370 downloads per month
See the book 📕 for in-depth documentation.
To run on CI as a GitHub Action, see
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
If you want to use
cargo-deny without having
cargo-deny with the
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
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
The advisories check is used to detect issues for crates by looking in an advisory database.
cargo deny check advisories
The sources check ensures crates only come from sources you trust.
cargo deny check sources
We welcome community contributions to this project.
Please read our Contributor Guide for more information on how to get started.
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
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.