- Notifications
You must be signed in to change notification settings - Fork91
❌ Cargo plugin for linting your dependencies 🦀
License
Apache-2.0, MIT licenses found
Licenses found
EmbarkStudios/cargo-deny
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
See thebook 📕 for in-depth documentation.
To run on CI as a GitHub Action, seecargo-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 usecargo-deny
without havingcargo
installed, buildcargo-deny
with thestandalone
feature. This can be useful in Docker Images.
cargo install --locked cargo-deny# Or, if you're an Arch userpacman -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
You can usecargo-deny
withpre-commit. Add it to your local.pre-commit-config.yaml
as follows:
-repo:https://github.com/EmbarkStudios/cargo-denyrev:0.14.16# choose your preferred taghooks: -id:cargo-denyargs:["--all-features", "check"]# optionally modify the arguments for cargo-deny (default arguments shown here)
We welcome community contributions to this project.
Please read ourContributor Guide for more information on how to get started.
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE orhttp://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT orhttp://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.
About
❌ Cargo plugin for linting your dependencies 🦀