Crates.io | cargo-deny |
lib.rs | cargo-deny |
version | 0.16.1 |
source | src |
created_at | 2019-05-13 08:01:00.226117 |
updated_at | 2024-08-05 11:08:16.267224 |
description | Cargo plugin to help you manage large dependency graphs |
homepage | https://github.com/EmbarkStudios/cargo-deny |
repository | https://github.com/EmbarkStudios/cargo-deny |
max_upload_size | |
id | 133954 |
size | 2,149,887 |
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
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
cargo deny init
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
You can use cargo-deny
with pre-commit. Add it to your local .pre-commit-config.yaml
as follows:
- repo: https://github.com/EmbarkStudios/cargo-deny
rev: 0.14.16 # choose your preferred tag
hooks:
- id: cargo-deny
args: ["--all-features", "check"] # optionally modify the arguments for cargo-deny (default arguments shown here)
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.