Skip to content

Commit d4269f0

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 1dde7e6 commit d4269f0

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

crates/claude-client/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
//! - Hybrid local/cloud inference
1111
//! - Rate limiting and retry logic
1212
13+
#![forbid(unsafe_code)]
1314
use futures::StreamExt;
1415
use reqwest::Client;
1516
use serde::{Deserialize, Serialize};

crates/lsm/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
//! This serves as the first reservoir in our neurosymbolic pipeline,
66
//! processing temporal sensor data with spike-timing dynamics.
77
8+
#![forbid(unsafe_code)]
89
use ndarray::{Array1, Array2, Array3, Axis};
910
use ndarray_rand::RandomExt;
1011
use rand::distributions::{Bernoulli, Uniform};

crates/neurophone-core/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
//! 3. **Bridge**: Encodes neural firing patterns into textual context for the LLM.
1313
//! 4. **LLM**: Local Llama 3.2 for reasoning, with Claude 3.5 fallback.
1414
15+
#![forbid(unsafe_code)]
1516
use ndarray::Array1;
1617
use serde::{Deserialize, Serialize};
1718
use std::sync::Arc;

0 commit comments

Comments
 (0)