Repository navigation
Expand file tree
/
Copy pathdeny.toml
More file actions
68 lines (63 loc) · 3.14 KB
/
Copy pathdeny.toml
File metadata and controls
68 lines (63 loc) · 3.14 KB
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
[advisories]
unmaintained = "all"
yanked = "warn"
ignore = [
# rsa 0.9 and crypto-bigint 0.5 come only through pgp in solidcraft-io, which verifies the
# OpenPGP signature of a design's provenance record with a public key. Both advisories concern
# private-key operations (Marvin timing on RSA decryption, constant-time arithmetic on
# secrets); FieldCraft opens designs and never hands these crates a private key. SolidCraft's
# own deny.toml ignores both for the same reason. Drop them once pgp moves to rsa 0.10.
{ id = "RUSTSEC-2023-0071", reason = "rsa via pgp (solidcraft-io) verifies public-key signatures only; no private-key operations" },
{ id = "RUSTSEC-2026-0387", reason = "crypto-bigint via pgp (solidcraft-io) is used for public-key verification only; no secret arithmetic" },
# curve25519-dalek 4.1.3 also comes only through pgp (ed25519-dalek 2) in solidcraft-io. The
# bug is in the AVX-512 backend, which 4.0–4.1.3 build only on a nightly compiler with that
# backend selected; FieldCraft builds on stable with no backend cfg. The fix is 5.1, which
# ed25519-dalek 2 cannot use: drop this once pgp moves to it.
{ id = "RUSTSEC-2026-0620", reason = "curve25519-dalek via pgp (solidcraft-io): the AVX-512 backend is nightly-only in 4.1.3 and not built on our stable toolchain" },
]
[bans]
multiple-versions = "warn"
wildcards = "warn"
allow-wildcard-paths = true
[sources]
unknown-registry = "deny"
unknown-git = "deny"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
# SolidCraft (its kernel, the solidcore kernel it vendors, its UI kit and its patched egui-wgpu and
# winit), pinned by tag in Cargo.toml.
allow-git = ["https://github.com/tangency-labs/solidcraft"]
# What FieldCraft may ship: permissive licences only (no copyleft). A crate offering
# a choice (MIT OR LGPL) passes on its permissive option. THIRD-PARTY-LICENSES.txt is generated at
# release time (`cargo xtask licences`); this is the policy every pull request is held to.
[licenses]
confidence-threshold = 0.9
allow = [
"0BSD",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-2-Clause",
"BSD-3-Clause",
"BSL-1.0",
"CDLA-Permissive-2.0",
"ISC",
"MIT",
"OFL-1.1",
"Ubuntu-font-1.0",
"Unicode-3.0",
"Unlicense",
"Zlib",
]
# SolidCraft's look crate (solidcraft-look) ships SolidCraft's icon artwork, which is under the
# SolidCraft Brand and Interface Licence (not permissive). FieldCraft links and distributes it by
# written permission of SolidCraft's maintainer (requested by jyviko, approved by bherbruck in
# #872), as documented in docs/adr/0001-libraries.md. The UI kit, theme and icon SVG parser are
# MIT OR Apache-2.0 from SolidCraft 615a4adc1f on, so they need no clarify or exception. The
# look crate's LICENSE is named a LicenseRef, allowed for that crate only; it is not in the allow
# list above, and any other crate under that licence fails.
[[licenses.clarify]]
crate = "solidcraft-look"
expression = "LicenseRef-SolidCraft-Brand"
license-files = [{ path = "LICENSE", hash = 0x4b91093f }]
[[licenses.exceptions]]
crate = "solidcraft-look"
allow = ["LicenseRef-SolidCraft-Brand"]