Skip to content

Commit 16183e5

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 f86ad86 commit 16183e5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
//! 4. **Diff Compression**: Reduces dataset size by storing only the residual
1818
//! between original and VAE-decoded images.
1919
20+
#![forbid(unsafe_code)]
2021
mod metadata;
2122

2223
use anyhow::{Context, Result, bail};

0 commit comments

Comments
 (0)