generated from EmbarkStudios/opensource-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Enable CI jobs * Fix clippy lints * Add cargo deny config * Add license exception for rustls-webpki * Add cargo deny ban skip exception for socket2 --------- Co-authored-by: Björn Westlin <[email protected]>
- Loading branch information
Showing
3 changed files
with
99 additions
and
147 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
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,71 @@ | ||
targets = [ | ||
{ triple = "x86_64-unknown-linux-gnu" }, | ||
{ triple = "x86_64-unknown-linux-musl" }, | ||
{ triple = "x86_64-pc-windows-msvc" }, | ||
{ triple = "x86_64-apple-darwin" }, | ||
] | ||
|
||
[advisories] | ||
unmaintained = "deny" | ||
ignore = [] | ||
|
||
[bans] | ||
multiple-versions = "deny" | ||
deny = [{ name = "openssl" }, { name = "openssl-sys" }] | ||
skip = [{ name = "socket2" }] | ||
skip-tree = [] | ||
|
||
[licenses] | ||
unlicensed = "deny" | ||
# We want really high confidence when inferring licenses from text | ||
confidence-threshold = 0.92 | ||
allow = ["Apache-2.0", "MIT", "BSD-3-Clause", "Unicode-DFS-2016"] | ||
exceptions = [ | ||
{ allow = [ | ||
"MPL-2.0", | ||
], name = "webpki-roots" }, | ||
{ allow = [ | ||
"ISC", | ||
], name = "untrusted" }, | ||
{ allow = [ | ||
"ISC", | ||
], name = "webpki" }, | ||
{ allow = [ | ||
"ISC", | ||
], name = "rustls-webpki" }, | ||
{ allow = [ | ||
"ISC", | ||
"MIT", | ||
"OpenSSL", | ||
], name = "ring" }, | ||
{ allow = [ | ||
"Zlib", | ||
], name = "tinyvec" }, | ||
] | ||
|
||
[[licenses.clarify]] | ||
name = "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.clarify]] | ||
name = "encoding_rs" | ||
expression = "(Apache-2.0 OR MIT) AND BSD-3-Clause" | ||
license-files = [{ path = "COPYRIGHT", hash = 0x39f8ad31 }] | ||
|
||
[[licenses.clarify]] | ||
name = "webpki" | ||
expression = "ISC" | ||
license-files = [{ path = "LICENSE", hash = 0x001c7e6c }] | ||
|
||
[[licenses.clarify]] | ||
name = "rustls-webpki" | ||
expression = "ISC" | ||
license-files = [{ path = "LICENSE", hash = 0x001c7e6c }] |
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