Skip to content

Commit 1642ac1

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 7328bc8 commit 1642ac1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • crates/polysafe_nifs/src

crates/polysafe_nifs/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
//! Elixir side is responsible for tracking handle lifetimes via a
2222
//! GenServer or ETS table.
2323
24+
#![forbid(unsafe_code)]
2425
use rustler::{Encoder, Env, NifResult, Term};
2526

2627
mod atoms {

0 commit comments

Comments
 (0)