Skip to content

Commit f8fb226

Browse files
committed
Use "reason" field to explain ignored advisory
This turns the comment in `cargo.deny` explaining why we currently ignore the informational advisory RUSTSEC-2024-0436 in `paste` into data that could be parsed and displayed by tools, by using the form with `id` and `reason` fields, where the old comment text is the value of the `reason` field. This is one of the forms documented in: https://embarkstudios.github.io/cargo-deny/checks/advisories/cfg.html#the-ignore-field-optional
1 parent 3cfd7fa commit f8fb226

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

deny.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
# https://embarkstudios.github.io/cargo-deny/checks/advisories/cfg.html
1010
[advisories]
1111
ignore = [
12-
# `paste` - macro crate without replacement
13-
"RUSTSEC-2024-0436"
12+
{ id = "RUSTSEC-2024-0436", reason = "`paste` - macro crate without replacement" },
1413
]
1514

1615

0 commit comments

Comments
 (0)