@@ -41,10 +41,18 @@ impl Deref for BuiltInPolicy {
4141
4242macro_rules! define_builtin_policies {
4343 ( $(
44- $const_name: ident = $policy_name: literal
44+ $const_name: ident = $policy_name: literal -- $description : literal
4545 ) ,* $( , ) ?) => {
4646 // Define the static constants
4747 $(
48+ #[ doc = $description]
49+ #[ doc = "```text" ]
50+ #[ doc = include_str!( concat!(
51+ "../../builtin-policies/" ,
52+ $policy_name,
53+ ".builtin-policy"
54+ ) ) ]
55+ #[ doc = "```" ]
4856 pub static $const_name: BuiltInPolicy = BuiltInPolicy {
4957 name: $policy_name,
5058 policy: LazyLock :: new( || {
@@ -87,8 +95,8 @@ macro_rules! define_builtin_policies {
8795// All built-in policies defined here in one single place.
8896// Multiple invocations not possible since this invocation emits the `builtin` lookup function.
8997define_builtin_policies ! {
90- SIGSUM_TEST1_2025 = "sigsum-test1-2025" ,
91- SIGSUM_TEST2_2025 = "sigsum-test2-2025" ,
92- SIGSUM_TEST_2025_3 = "sigsum-test-2025-3" ,
93- SIGSUM_GENERIC_2025_1 = "sigsum-generic-2025-1" ,
98+ SIGSUM_TEST1_2025 = "sigsum-test1-2025" -- "Policy using the sigsum test log at test.sigsum.org/barreleye" ,
99+ SIGSUM_TEST2_2025 = "sigsum-test2-2025" -- "Policy using the sigsum test log at test.sigsum.org/barreleye" ,
100+ SIGSUM_TEST_2025_3 = "sigsum-test-2025-3" -- "Policy using two sigsum test logs at test.sigsum.org/barreleye and serviceberry.tlog.stagemole.eu" ,
101+ SIGSUM_GENERIC_2025_1 = "sigsum-generic-2025-1" -- "This is a Sigsum trust policy that has been vetted by the Sigsum project" ,
94102}
0 commit comments