Skip to content

Commit

Permalink
Add basic deny.toml file (#58)
Browse files Browse the repository at this point in the history
### Checklist

* [x] I have read the [Contributor Guide](../../CONTRIBUTING.md)
* [x] I have read and agree to the [Code of
Conduct](../../CODE_OF_CONDUCT.md)
* [x] I have added a description of my changes and why I'd like them
included in the section below

### Description of Changes

Adds a basic cargo-deny configuration as well as a CI step to run it on
every run.
  • Loading branch information
bnjbvr authored Dec 13, 2022
1 parent 23e7992 commit 8ff29ff
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
run: |
rustup component add clippy
cargo clippy --all-targets --all-features -- -D warnings
- uses: EmbarkStudios/cargo-deny-action@v1

cargo-hack:
runs-on: ubuntu-latest
Expand Down
32 changes: 32 additions & 0 deletions deny.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[advisories]
vulnerability = "allow"
unmaintained = "allow"

[bans]
multiple-versions = "deny"
deny = [
]

skip = [
]

[sources]
unknown-registry = "deny"
unknown-git = "allow"
allow-registry = [
"https://github.com/rust-lang/crates.io-index",
]

[licenses]
unlicensed = "deny"
allow-osi-fsf-free = "neither"
# We want really high confidence when inferring licenses from text
confidence-threshold = 0.92
copyleft = "deny"
allow = [
"Apache-2.0",
"MIT",
"Unicode-DFS-2016",
]
exceptions = [
]

0 comments on commit 8ff29ff

Please sign in to comment.