+191 -0 +/-1 browse
1 | diff --git a/deny.toml b/deny.toml |
2 | new file mode 100644 |
3 | index 0000000..0a4f29f |
4 | --- /dev/null |
5 | +++ b/deny.toml |
6 | @@ -0,0 +1,191 @@ |
7 | + # cargo-deny configuration |
8 | + |
9 | + [graph] |
10 | + # When creating the dependency graph used as the source of truth when checks are |
11 | + # executed, this field can be used to prune crates from the graph, removing them |
12 | + # from the view of cargo-deny. This is an extremely heavy hammer, as if a crate |
13 | + # is pruned from the graph, all of its dependencies will also be pruned unless |
14 | + # they are connected to another crate in the graph that hasn't been pruned, |
15 | + # so it should be used with care. The identifiers are [Package ID Specifications] |
16 | + # (https://doc.rust-lang.org/cargo/reference/pkgid-spec.html) |
17 | + #exclude = [] |
18 | + # If true, metadata will be collected with `--all-features`. Note that this can't |
19 | + # be toggled off if true, if you want to conditionally enable `--all-features` it |
20 | + # is recommended to pass `--all-features` on the cmd line instead |
21 | + all-features = false |
22 | + # If true, metadata will be collected with `--no-default-features`. The same |
23 | + # caveat with `all-features` applies |
24 | + no-default-features = false |
25 | + # If set, these feature will be enabled when collecting metadata. If `--features` |
26 | + # is specified on the cmd line they will take precedence over this option. |
27 | + #features = [] |
28 | + |
29 | + [output] |
30 | + feature-depth = 1 |
31 | + |
32 | + [advisories] |
33 | + ignore = [ |
34 | + { id = "RUSTSEC-2021-0145", reason = "Affects Windows, which we do not support officially." }, |
35 | + #"RUSTSEC-0000-0000", |
36 | + #{ id = "RUSTSEC-0000-0000", reason = "you can specify a reason the advisory is ignored" }, |
37 | + #"a-crate-that-is-yanked@0.1.1", # you can also ignore yanked crate versions if you wish |
38 | + #{ crate = "a-crate-that-is-yanked@0.1.1", reason = "you can specify why you are ignoring the yanked crate" }, |
39 | + ] |
40 | + # If this is true, then cargo deny will use the git executable to fetch advisory database. |
41 | + # If this is false, then it uses a built-in git library. |
42 | + # Setting this to true can be helpful if you have special authentication requirements that cargo-deny does not support. |
43 | + # See Git Authentication for more information about setting up git authentication. |
44 | + #git-fetch-with-cli = true |
45 | + |
46 | + # This section is considered when running `cargo deny check licenses` |
47 | + # More documentation for the licenses section can be found here: |
48 | + # https://embarkstudios.github.io/cargo-deny/checks/licenses/cfg.html |
49 | + [licenses] |
50 | + # List of explicitly allowed licenses |
51 | + # See https://spdx.org/licenses/ for list of possible licenses |
52 | + # [possible values: any SPDX 3.11 short identifier (+ optional exception)]. |
53 | + allow = [ |
54 | + #"MIT", |
55 | + #"Apache-2.0", |
56 | + #"Apache-2.0 WITH LLVM-exception", |
57 | + ] |
58 | + # The confidence threshold for detecting a license from license text. |
59 | + # The higher the value, the more closely the license text must be to the |
60 | + # canonical license text of a valid SPDX license file. |
61 | + # [possible values: any between 0.0 and 1.0]. |
62 | + confidence-threshold = 0.8 |
63 | + # Allow 1 or more licenses on a per-crate basis, so that particular licenses |
64 | + # aren't accepted for every possible crate as with the normal allow list |
65 | + exceptions = [ |
66 | + # Each entry is the crate and version constraint, and its specific allow |
67 | + # list |
68 | + #{ allow = ["Zlib"], crate = "adler32" }, |
69 | + ] |
70 | + |
71 | + # Some crates don't have (easily) machine readable licensing information, |
72 | + # adding a clarification entry for it allows you to manually specify the |
73 | + # licensing information |
74 | + #[[licenses.clarify]] |
75 | + # The package spec the clarification applies to |
76 | + #crate = "ring" |
77 | + # The SPDX expression for the license requirements of the crate |
78 | + #expression = "MIT AND ISC AND OpenSSL" |
79 | + # One or more files in the crate's source used as the "source of truth" for |
80 | + # the license expression. If the contents match, the clarification will be used |
81 | + # when running the license check, otherwise the clarification will be ignored |
82 | + # and the crate will be checked normally, which may produce warnings or errors |
83 | + # depending on the rest of your configuration |
84 | + #license-files = [ |
85 | + # Each entry is a crate relative path, and the (opaque) hash of its contents |
86 | + #{ path = "LICENSE", hash = 0xbd0eed23 } |
87 | + #] |
88 | + |
89 | + [licenses.private] |
90 | + # If true, ignores workspace crates that aren't published, or are only |
91 | + # published to private registries. |
92 | + # To see how to mark a crate as unpublished (to the official registry), |
93 | + # visit https://doc.rust-lang.org/cargo/reference/manifest.html#the-publish-field. |
94 | + ignore = false |
95 | + # One or more private registries that you might publish crates to, if a crate |
96 | + # is only published to private registries, and ignore is true, the crate will |
97 | + # not have its license(s) checked |
98 | + registries = [ |
99 | + #"https://sekretz.com/registry |
100 | + ] |
101 | + |
102 | + # This section is considered when running `cargo deny check bans`. |
103 | + # More documentation about the 'bans' section can be found here: |
104 | + # https://embarkstudios.github.io/cargo-deny/checks/bans/cfg.html |
105 | + [bans] |
106 | + # Lint level for when multiple versions of the same crate are detected |
107 | + multiple-versions = "warn" |
108 | + # Lint level for when a crate version requirement is `*` |
109 | + wildcards = "allow" |
110 | + # The graph highlighting used when creating dotgraphs for crates |
111 | + # with multiple versions |
112 | + # * lowest-version - The path to the lowest versioned duplicate is highlighted |
113 | + # * simplest-path - The path to the version with the fewest edges is highlighted |
114 | + # * all - Both lowest-version and simplest-path are used |
115 | + highlight = "all" |
116 | + # The default lint level for `default` features for crates that are members of |
117 | + # the workspace that is being checked. This can be overridden by allowing/denying |
118 | + # `default` on a crate-by-crate basis if desired. |
119 | + workspace-default-features = "allow" |
120 | + # The default lint level for `default` features for external crates that are not |
121 | + # members of the workspace. This can be overridden by allowing/denying `default` |
122 | + # on a crate-by-crate basis if desired. |
123 | + external-default-features = "allow" |
124 | + # List of crates that are allowed. Use with care! |
125 | + allow = [ |
126 | + #"ansi_term@0.11.0", |
127 | + #{ crate = "ansi_term@0.11.0", reason = "you can specify a reason it is allowed" }, |
128 | + ] |
129 | + # List of crates to deny |
130 | + deny = [ |
131 | + #"ansi_term@0.11.0", |
132 | + #{ crate = "ansi_term@0.11.0", reason = "you can specify a reason it is banned" }, |
133 | + # Wrapper crates can optionally be specified to allow the crate when it |
134 | + # is a direct dependency of the otherwise banned crate |
135 | + #{ crate = "ansi_term@0.11.0", wrappers = ["this-crate-directly-depends-on-ansi_term"] }, |
136 | + ] |
137 | + |
138 | + # List of features to allow/deny |
139 | + # Each entry the name of a crate and a version range. If version is |
140 | + # not specified, all versions will be matched. |
141 | + #[[bans.features]] |
142 | + #crate = "reqwest" |
143 | + # Features to not allow |
144 | + #deny = ["json"] |
145 | + # Features to allow |
146 | + #allow = [ |
147 | + # "rustls", |
148 | + # "__rustls", |
149 | + # "__tls", |
150 | + # "hyper-rustls", |
151 | + # "rustls", |
152 | + # "rustls-pemfile", |
153 | + # "rustls-tls-webpki-roots", |
154 | + # "tokio-rustls", |
155 | + # "webpki-roots", |
156 | + #] |
157 | + # If true, the allowed features must exactly match the enabled feature set. If |
158 | + # this is set there is no point setting `deny` |
159 | + #exact = true |
160 | + |
161 | + # Certain crates/versions that will be skipped when doing duplicate detection. |
162 | + skip = [ |
163 | + #"ansi_term@0.11.0", |
164 | + #{ crate = "ansi_term@0.11.0", reason = "you can specify a reason why it can't be updated/removed" }, |
165 | + ] |
166 | + # Similarly to `skip` allows you to skip certain crates during duplicate |
167 | + # detection. Unlike skip, it also includes the entire tree of transitive |
168 | + # dependencies starting at the specified crate, up to a certain depth, which is |
169 | + # by default infinite. |
170 | + skip-tree = [ |
171 | + #"ansi_term@0.11.0", # will be skipped along with _all_ of its direct and transitive dependencies |
172 | + #{ crate = "ansi_term@0.11.0", depth = 20 }, |
173 | + ] |
174 | + |
175 | + # This section is considered when running `cargo deny check sources`. |
176 | + # More documentation about the 'sources' section can be found here: |
177 | + # https://embarkstudios.github.io/cargo-deny/checks/sources/cfg.html |
178 | + [sources] |
179 | + # Lint level for what to happen when a crate from a crate registry that is not |
180 | + # in the allow list is encountered |
181 | + unknown-registry = "warn" |
182 | + # Lint level for what to happen when a crate from a git repository that is not |
183 | + # in the allow list is encountered |
184 | + unknown-git = "warn" |
185 | + # List of URLs for allowed crate registries. Defaults to the crates.io index |
186 | + # if not specified. If it is specified but empty, no registries are allowed. |
187 | + allow-registry = ["https://github.com/rust-lang/crates.io-index"] |
188 | + # List of URLs for allowed Git repositories |
189 | + allow-git = [] |
190 | + |
191 | + [sources.allow-org] |
192 | + # 1 or more github.com organizations to allow git sources for |
193 | + github = [""] |
194 | + # 1 or more gitlab.com organizations to allow git sources for |
195 | + gitlab = [""] |
196 | + # 1 or more bitbucket.org organizations to allow git sources for |
197 | + bitbucket = [""] |