Skip to content

Commit 663f160

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 99ae8e2 commit 663f160

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
@@ -19,6 +19,7 @@
1919
//! Authentication: `CLOUDFLARE_API_TOKEN` environment variable, or
2020
//! `~/.config/cloudguard/credentials` file.
2121
22+
#![forbid(unsafe_code)]
2223
mod api;
2324

2425
use clap::{Parser, Subcommand};

0 commit comments

Comments
 (0)