Skip to content

Commit 27bdd83

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 a8460ce commit 27bdd83

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

crates/formatrix-db/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//! - Tag and collection management
88
//! - Full-text search across documents
99
10+
#![forbid(unsafe_code)]
1011
use arangors::client::reqwest::ReqwestClient;
1112
use arangors::{AqlQuery, ClientError, Connection, Database};
1213
use serde::{Deserialize, Serialize};

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)