From b06ddc099fb47997b47fa6a171be3fc2a98ac30d Mon Sep 17 00:00:00 2001 From: "@permadeath.com" Date: Sat, 5 Sep 2026 15:33:22 -0400 Subject: [PATCH] build: forbid unsafe code in the policy crates didbot-policy and didbot-policy-source were the only two crates in the workspace without #![forbid(unsafe_code)]. Neither has a reason to use unsafe, so bring them in line with every other crate. Change-Id: I691d3f4318526dff4f2f2d1d10b2d89d2441670d --- crates/didbot-policy-source/src/lib.rs | 2 ++ crates/didbot-policy/src/lib.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/crates/didbot-policy-source/src/lib.rs b/crates/didbot-policy-source/src/lib.rs index c1fc4180..7f2e5c71 100644 --- a/crates/didbot-policy-source/src/lib.rs +++ b/crates/didbot-policy-source/src/lib.rs @@ -57,6 +57,8 @@ //! something concrete to load. See [`record`]'s doc comment for exactly //! what a real lexicon would need to settle. +#![forbid(unsafe_code)] + pub mod blob; pub mod builtin; pub mod compile; diff --git a/crates/didbot-policy/src/lib.rs b/crates/didbot-policy/src/lib.rs index 71c1ebea..877c27c8 100644 --- a/crates/didbot-policy/src/lib.rs +++ b/crates/didbot-policy/src/lib.rs @@ -63,6 +63,8 @@ //! deletes) without being load-bearing for a value-shaped rule's //! correctness. +#![forbid(unsafe_code)] + mod evaluate; mod index; mod language; -- 2.51.2