Skip to content

Commit b27c4ee

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 90fc05a commit b27c4ee

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

crates/formatrix-core/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//! - Implementations for 7 formats: TXT, MD, ADOC, DJOT, ORG, RST, TYP
88
//! - C FFI exports for the Ada TUI (FD-M10)
99
10+
#![forbid(unsafe_code)]
1011
pub mod ast;
1112
pub mod file_ops;
1213
pub mod formats;

crates/formatrix-gui/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// SPDX-License-Identifier: PMPL-1.0-or-later
22
//! Formatrix GUI - Tauri 2.0 desktop and mobile application
33
4+
#![forbid(unsafe_code)]
45
pub mod commands;
56

67
pub use commands::*;

crates/formatrix-pipeline/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
//! - Steps: Ordered list of transforms
77
//! - Output: Target format and filename pattern
88
9+
#![forbid(unsafe_code)]
910
use serde::{Deserialize, Serialize};
1011
use thiserror::Error;
1112

0 commit comments

Comments
 (0)