Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

❌ Cargo plugin for linting your dependencies 🦀

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
NotificationsYou must be signed in to change notification settings

EmbarkStudios/cargo-deny

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Cargo plugin for linting your dependencies

Embark OpensourceEmbark DiscordCrates.ioAPI DocsDocsMinimum Stable Rust VersionSPDX Versiondependency statusBuild Status

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

Usage

Packaging status

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

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

Pre-commit hook

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)

Contributing

Contributor Covenant

We welcome community contributions to this project.

Please read ourContributor 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.


[8]ページ先頭

©2009-2025 Movatter.jp