summaryrefslogtreecommitdiffhomepage
path: root/test/deny.toml
blob: 3c33c57cb06ca7f889ed24166e487147f730ab04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# Keep this file in sync with test/osv-scanner.toml

[graph]
# cargo deny will only evaluate dependencies pulled in by these
# targets (the ones we run the test runner on)
targets = [
  { triple = "x86_64-unknown-linux-gnu" },
  { triple = "x86_64-pc-windows-gnu" },
  { triple = "x86_64-apple-darwin" },
  { triple = "aarch64-apple-darwin" }
]

# This section is considered when running `cargo deny check advisories`
# More documentation for the advisories section can be found here:
# https://embarkstudios.github.io/cargo-deny/checks/advisories/cfg.html
[advisories]
version = 2  # https://github.com/EmbarkStudios/cargo-deny/pull/611
yanked = "deny"
ignore = [
  # Ignored audit issues. This list should be kept short, and effort should be
  # put into removing items from the list.

  # test-rpc does not deal with random user input
  "RUSTSEC-2025-0055"
]

# This section is considered when running `cargo deny check licenses`
# More documentation for the licenses section can be found here:
# https://embarkstudios.github.io/cargo-deny/checks/licenses/cfg.html
[licenses]
version = 2  # https://github.com/EmbarkStudios/cargo-deny/pull/611
# Adding a license here has to be done carefully. Should only be done by team leads.
allow = [
  "GPL-3.0-or-later",
  "Apache-2.0",
  "MIT",
  "MPL-2.0",
  "WTFPL",
  "ISC",
  "BSD-3-Clause",
  "BSD-2-Clause",
  "CC0-1.0",
  # https://github.com/briansmith/ring/issues/902
  "LicenseRef-ring",
  "Unicode-DFS-2016",
  "Zlib",
  "Unicode-3.0",
  "CDLA-Permissive-2.0"
]

[[licenses.clarify]]
name = "ring"
expression = "LicenseRef-ring"
license-files = [{ path = "LICENSE", hash = 0xbd0eed23 }]

[licenses.private]
ignore = false

[[licenses.exceptions]]
crate = "domain-fronting"
allow = ["GPL-3.0-or-later"]

# This section is considered when running `cargo deny check bans`.
# More documentation about the 'bans' section can be found here:
# https://embarkstudios.github.io/cargo-deny/checks/bans/cfg.html
[bans]
multiple-versions = "warn"
wildcards = "warn"
highlight = "all"
allow = []
deny = [
  { name = "clap", version = "2" },
  { name = "clap", version = "3" },
  { name = "time", version = "0.1" },
]

# This section is considered when running `cargo deny check sources`.
# More documentation about the 'sources' section can be found here:
# https://embarkstudios.github.io/cargo-deny/checks/sources/cfg.html
[sources]
unknown-registry = "deny"
unknown-git = "deny"
# We should never depend on git repositories outside our own github organization.
# We can't say anything about their availability. They might go away at any point
# in time. Instead of using third party git repositories, always fork the repository
# into our github organization and depend on that.
#
# But if possible, always avoid git dependencies and try to have the developers publish
# releases to crates.io instead.
allow-git = []

[sources.allow-org]
# 1 or more github.com organizations to allow git sources for
github = ["mullvad"]