-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: add cargo-deny and ensure it passes * ci: enforce cargo deny
- Loading branch information
Showing
10 changed files
with
158 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: cargo-deny check | ||
on: pull_request | ||
jobs: | ||
cargo-deny: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: EmbarkStudios/cargo-deny-action@v2 | ||
with: | ||
manifest-path: "./Cargo.toml" | ||
command: check | ||
command-arguments: "--hide-inclusion-graph" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
[graph] | ||
targets = [ | ||
"x86_64-unknown-linux-gnu", | ||
"aarch64-unknown-linux-gnu", | ||
"x86_64-apple-darwin", | ||
"aarch64-apple-darwin", | ||
] | ||
all-features = false | ||
no-default-features = false | ||
|
||
[output] | ||
feature-depth = 1 | ||
|
||
[advisories] | ||
ignore = [ | ||
{ id = "RUSTSEC-2024-0370", reason = "`proc-macro-error` is unmaintained, but foundry relies on it" }, | ||
{ id = "RUSTSEC-2024-0388", reason = '`derivative` is unmaintained, crypto dependenicies (boojum, circuit_encodings and others) rely on it' }, | ||
] | ||
|
||
[licenses] | ||
allow = [ | ||
"MIT", | ||
"Apache-2.0", | ||
"ISC", | ||
"Unlicense", | ||
"MPL-2.0", | ||
"CC0-1.0", | ||
"BSD-2-Clause", | ||
"BSD-3-Clause", | ||
"Zlib", | ||
"OpenSSL", | ||
"Apache-2.0 WITH LLVM-exception", | ||
"0BSD", | ||
"BSL-1.0", | ||
"Unicode-3.0" | ||
] | ||
confidence-threshold = 0.8 | ||
|
||
[[licenses.clarify]] | ||
crate = "ring" | ||
# SPDX considers OpenSSL to encompass both the OpenSSL and SSLeay licenses | ||
# https://spdx.org/licenses/OpenSSL.html | ||
# ISC - Both BoringSSL and ring use this for their new files | ||
# MIT - "Files in third_party/ have their own licenses, as described therein. The MIT | ||
# license, for third_party/fiat, which, unlike other third_party directories, is | ||
# compiled into non-test libraries, is included below." | ||
# OpenSSL - Obviously | ||
expression = "ISC AND MIT AND OpenSSL" | ||
license-files = [{ path = "LICENSE", hash = 0xbd0eed23 }] | ||
|
||
[licenses.private] | ||
ignore = false | ||
registries = [] | ||
|
||
[bans] | ||
multiple-versions = "allow" | ||
wildcards = "allow" | ||
highlight = "all" | ||
workspace-default-features = "allow" | ||
external-default-features = "allow" | ||
allow = [] | ||
deny = [ | ||
{ crate = "openssl", use-instead = "rustls" }, | ||
{ crate = "openssl-sys", use-instead = "rustls" }, | ||
] | ||
skip = [] | ||
skip-tree = [] | ||
|
||
[sources] | ||
unknown-registry = "deny" | ||
unknown-git = "allow" | ||
allow-registry = ["https://github.com/rust-lang/crates.io-index"] | ||
allow-git = [] | ||
|
||
[sources.allow-org] | ||
github = [] | ||
gitlab = [] | ||
bitbucket = [] |