From a0738189a552f0f2cdab8ed4dd3f45ef848e9f34 Mon Sep 17 00:00:00 2001 From: Teakowa Date: Thu, 22 Oct 2026 06:35:21 +0800 Subject: [PATCH] chore: forbid unsafe code in the workspace The project has no unsafe code; unsafe_code = "forbid" in the workspace lints keeps it that way. All three member crates already inherit via lints.workspace = true. Verified: an injected unsafe block fails the build. Fixes #101 --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.toml b/Cargo.toml index a804108..fbafe4c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,6 +14,7 @@ serde = "1" serde_json = "1" [workspace.lints.rust] +unsafe_code = "forbid" unsafe_op_in_unsafe_fn = "deny" unreachable_pub = "deny"