Skip to content

Commit 5d06b20

Browse files
hyperpolymathclaude
andcommitted
chore: add #![forbid(unsafe_code)] to safe Rust crates
Adds the forbid(unsafe_code) crate-level attribute to all Rust crates that do not use unsafe code, hardening the safety guarantee at compile time. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent f0f932d commit 5d06b20

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

crates/hesinfo/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//! generate - Generate a BIND-format zone file
88
//! validate - Validate a zone file
99
10+
#![forbid(unsafe_code)]
1011
use std::path::PathBuf;
1112

1213
use anyhow::{Context, Result};

crates/hesiod-lib/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
//! Provides HS-class TXT record management, a lightweight UDP DNS server,
55
//! and HTTP health/metrics endpoints for FlatRacoon network stack integration.
66
7+
#![forbid(unsafe_code)]
78
pub mod config;
89
pub mod health;
910
pub mod records;

0 commit comments

Comments
 (0)