|
| 1 | +# If 1 or more target triples (and optionally, target_features) are specified, |
| 2 | +# only the specified targets will be checked when running `cargo deny check`. |
| 3 | +# This means, if a particular package is only ever used as a target specific |
| 4 | +# dependency, such as, for example, the `nix` crate only being used via the |
| 5 | +# `target_family = "unix"` configuration, that only having windows targets in |
| 6 | +# this list would mean the nix crate, as well as any of its exclusive |
| 7 | +# dependencies not shared by any other crates, would be ignored, as the target |
| 8 | +# list here is effectively saying which targets you are building for. |
| 9 | +targets = [ |
| 10 | + { triple = "x86_64-unknown-linux-gnu" }, |
| 11 | +] |
| 12 | + |
| 13 | +# This section is considered when running `cargo deny check advisories` |
| 14 | +# More documentation for the advisories section can be found here: |
| 15 | +# https://embarkstudios.github.io/cargo-deny/checks/advisories/cfg.html |
| 16 | +[advisories] |
| 17 | +# The path where the advisory database is cloned/fetched into |
| 18 | +# db-path = "~/.cargo/advisory-db" |
| 19 | +# The url(s) of the advisory databases to use |
| 20 | +db-urls = ["https://github.com/rustsec/advisory-db"] |
| 21 | +# The lint level for security vulnerabilities |
| 22 | +vulnerability = "deny" |
| 23 | +# The lint level for unmaintained crates |
| 24 | +unmaintained = "warn" |
| 25 | +# The lint level for crates that have been yanked from their source registry |
| 26 | +yanked = "warn" |
| 27 | +# The lint level for crates with security notices. Note that as of |
| 28 | +# 2019-12-17 there are no security notice advisories in |
| 29 | +# https://github.com/rustsec/advisory-db |
| 30 | +notice = "warn" |
| 31 | +# A list of advisory IDs to ignore. Note that ignored advisories will still |
| 32 | +# output a note when they are encountered. |
| 33 | +ignore = [ |
| 34 | +] |
| 35 | + |
| 36 | +# This section is considered when running `cargo deny check licenses` |
| 37 | +# More documentation for the licenses section can be found here: |
| 38 | +# https://embarkstudios.github.io/cargo-deny/checks/licenses/cfg.html |
| 39 | +[licenses] |
| 40 | +# The lint level for crates which do not have a detectable license |
| 41 | +unlicensed = "deny" |
| 42 | +# Allow us to keep a consistent list across projects without needing |
| 43 | +# to customize deny.toml based on what's actually present. |
| 44 | +unused-allowed-license = "allow" |
| 45 | +# List of explictly allowed licenses |
| 46 | +# See https://spdx.org/licenses/ for list of possible licenses |
| 47 | +# [possible values: any SPDX 3.11 short identifier (+ optional exception)]. |
| 48 | +allow = [ |
| 49 | + "0BSD", |
| 50 | + "Apache-2.0", |
| 51 | + "Apache-2.0 WITH LLVM-exception", |
| 52 | + "BSD-2-Clause", |
| 53 | + "BSD-3-Clause", |
| 54 | + "ISC", |
| 55 | + "MIT", |
| 56 | + "MIT-0", |
| 57 | + "MPL-2.0", |
| 58 | + "OpenSSL", |
| 59 | + "Unicode-DFS-2016", |
| 60 | + "WTFPL", |
| 61 | +] |
| 62 | +# List of explictly disallowed licenses |
| 63 | +# See https://spdx.org/licenses/ for list of possible licenses |
| 64 | +# [possible values: any SPDX 3.11 short identifier (+ optional exception)]. |
| 65 | +deny = [ |
| 66 | + #"Nokia", |
| 67 | +] |
| 68 | +# Lint level for licenses considered copyleft |
| 69 | +copyleft = "deny" |
| 70 | +# Blanket approval or denial for OSI-approved or FSF Free/Libre licenses |
| 71 | +# * both - The license will be approved if it is both OSI-approved *AND* FSF |
| 72 | +# * either - The license will be approved if it is either OSI-approved *OR* FSF |
| 73 | +# * osi-only - The license will be approved if is OSI-approved *AND NOT* FSF |
| 74 | +# * fsf-only - The license will be approved if is FSF *AND NOT* OSI-approved |
| 75 | +# * neither - This predicate is ignored and the default lint level is used |
| 76 | +allow-osi-fsf-free = "neither" |
| 77 | +# Lint level used when no other predicates are matched |
| 78 | +# 1. License isn't in the allow or deny lists |
| 79 | +# 2. License isn't copyleft |
| 80 | +# 3. License isn't OSI/FSF, or allow-osi-fsf-free = "neither" |
| 81 | +default = "deny" |
| 82 | +# The confidence threshold for detecting a license from license text. |
| 83 | +# The higher the value, the more closely the license text must be to the |
| 84 | +# canonical license text of a valid SPDX license file. |
| 85 | +# [possible values: any between 0.0 and 1.0]. |
| 86 | +confidence-threshold = 0.6 |
| 87 | + |
| 88 | +[licenses.private] |
| 89 | +# If true, ignores workspace crates that aren't published, or are only |
| 90 | +# published to private registries |
| 91 | +ignore = true |
| 92 | +# One or more private registries that you might publish crates to, if a crate |
| 93 | +# is only published to private registries, and ignore is true, the crate will |
| 94 | +# not have its license(s) checked |
| 95 | +registries = [ |
| 96 | + #"https://sekretz.com/registry |
| 97 | +] |
| 98 | + |
| 99 | +[[licenses.exceptions]] |
| 100 | +name = "intel-mkl-src" |
| 101 | +allow = ["LicenseRef-Intel-SmpL"] |
| 102 | + |
| 103 | +# Some crates don't have (easily) machine readable licensing information, |
| 104 | +# adding a clarification entry for it allows you to manually specify the |
| 105 | +# licensing information |
| 106 | +[[licenses.clarify]] |
| 107 | +name = "intel-mkl-src" |
| 108 | +expression = "LicenseRef-Intel-SmpL" |
| 109 | + |
| 110 | +[[licenses.clarify.license-files]] |
| 111 | +path = "../License.txt" |
| 112 | +hash = 0x3bf8c2d0 |
| 113 | + |
| 114 | +# This section is considered when running `cargo deny check bans`. |
| 115 | +# More documentation about the 'bans' section can be found here: |
| 116 | +# https://embarkstudios.github.io/cargo-deny/checks/bans/cfg.html |
| 117 | +[bans] |
| 118 | +# Lint level for when multiple versions of the same crate are detected |
| 119 | +multiple-versions = "deny" |
| 120 | +# Lint level for when a crate version requirement is `*` |
| 121 | +wildcards = "allow" |
| 122 | +# The graph highlighting used when creating dotgraphs for crates |
| 123 | +# with multiple versions |
| 124 | +# * lowest-version - The path to the lowest versioned duplicate is highlighted |
| 125 | +# * simplest-path - The path to the version with the fewest edges is highlighted |
| 126 | +# * all - Both lowest-version and simplest-path are used |
| 127 | +highlight = "all" |
| 128 | +# List of crates that are allowed. Use with care! |
| 129 | + |
| 130 | +[[bans.skip]] |
| 131 | +# so many things still on syn 1 |
| 132 | +name = "syn" |
| 133 | +version = "1.0.109" |
| 134 | + |
| 135 | +[[bans.skip]] |
| 136 | +# remove after updating ndarray-stats |
| 137 | +name = "indexmap" |
| 138 | +version = "1.9.3" |
| 139 | + |
| 140 | +[[bans.skip]] |
| 141 | +# remove after updating ndarray-stats |
| 142 | +name = "hashbrown" |
| 143 | +version = "0.12.3" |
| 144 | + |
| 145 | +[[bans.skip]] |
| 146 | +# remove after updating ndarray |
| 147 | +name = "approx" |
| 148 | +version = "0.4.0" |
| 149 | + |
| 150 | +[[bans.skip]] |
| 151 | +# remove after updating ndarray-stats |
| 152 | +name = "itertools" |
| 153 | +version = "0.10.5" |
| 154 | + |
| 155 | +[[bans.skip]] |
| 156 | +name = "bitflags" |
| 157 | +version = "1.3.2" |
| 158 | + |
| 159 | +# This section is considered when running `cargo deny check sources`. |
| 160 | +# More documentation about the 'sources' section can be found here: |
| 161 | +# https://embarkstudios.github.io/cargo-deny/checks/sources/cfg.html |
| 162 | +[sources] |
| 163 | +# Lint level for what to happen when a crate from a crate registry that is not |
| 164 | +# in the allow list is encountered |
| 165 | +unknown-registry = "deny" |
| 166 | +# Lint level for what to happen when a crate from a git repository that is not |
| 167 | +# in the allow list is encountered |
| 168 | +unknown-git = "deny" |
| 169 | +# List of URLs for allowed crate registries. Defaults to the crates.io index |
| 170 | +# if not specified. If it is specified but empty, no registries are allowed. |
| 171 | +allow-registry = ["https://github.com/rust-lang/crates.io-index"] |
| 172 | + |
| 173 | +[sources.allow-org] |
| 174 | +# 1 or more github.com organizations to allow git sources for |
| 175 | +github = ["10XGenomics"] |
0 commit comments