From 8816fef920c7fc485aa93f154cb609f4f92aca9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=9F=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=BE=D0=B2=20=5BArtyom=20Pavlov=5D?= Date: Fri, 15 May 2026 21:15:35 +0300 Subject: [PATCH] Move `forbid(unsafe_code)` to workspace lints --- Cargo.toml | 1 + ascon-xof128/src/lib.rs | 1 - bash-prg-hash/src/lib.rs | 1 - cshake/src/lib.rs | 1 - k12/src/lib.rs | 1 - shake/src/lib.rs | 1 - turboshake/src/lib.rs | 1 - 7 files changed, 1 insertion(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e9bbb42..11b49d7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,6 +13,7 @@ members = [ opt-level = 2 [workspace.lints.clippy] +unsafe_code = "forbid" borrow_as_ptr = "warn" cast_lossless = "warn" cast_possible_truncation = "warn" diff --git a/ascon-xof128/src/lib.rs b/ascon-xof128/src/lib.rs index 640db83..bef0f72 100644 --- a/ascon-xof128/src/lib.rs +++ b/ascon-xof128/src/lib.rs @@ -5,7 +5,6 @@ html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/meta/master/logo.svg" )] #![cfg_attr(docsrs, feature(doc_cfg))] -#![forbid(unsafe_code)] pub use digest::{self, ExtendableOutput, TryCustomizedInit, Update, XofReader}; diff --git a/bash-prg-hash/src/lib.rs b/bash-prg-hash/src/lib.rs index f6b5a88..7a59489 100644 --- a/bash-prg-hash/src/lib.rs +++ b/bash-prg-hash/src/lib.rs @@ -5,7 +5,6 @@ html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg" )] #![cfg_attr(docsrs, feature(doc_cfg))] -#![forbid(unsafe_code)] pub use digest::{self, Digest}; diff --git a/cshake/src/lib.rs b/cshake/src/lib.rs index 3f502d0..58a6278 100644 --- a/cshake/src/lib.rs +++ b/cshake/src/lib.rs @@ -5,7 +5,6 @@ html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg" )] #![cfg_attr(docsrs, feature(doc_cfg))] -#![forbid(unsafe_code)] pub use digest; diff --git a/k12/src/lib.rs b/k12/src/lib.rs index 8926add..088f253 100644 --- a/k12/src/lib.rs +++ b/k12/src/lib.rs @@ -5,7 +5,6 @@ html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg" )] #![cfg_attr(docsrs, feature(doc_cfg))] -#![forbid(unsafe_code)] pub use digest::{self, ExtendableOutput, Update, XofReader}; diff --git a/shake/src/lib.rs b/shake/src/lib.rs index c069f5f..aa4b2e8 100644 --- a/shake/src/lib.rs +++ b/shake/src/lib.rs @@ -5,7 +5,6 @@ html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg" )] #![cfg_attr(docsrs, feature(doc_cfg))] -#![forbid(unsafe_code)] pub use digest; pub use digest::{ExtendableOutput, Update, XofReader}; diff --git a/turboshake/src/lib.rs b/turboshake/src/lib.rs index d217eba..cdb0908 100644 --- a/turboshake/src/lib.rs +++ b/turboshake/src/lib.rs @@ -5,7 +5,6 @@ html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg" )] #![cfg_attr(docsrs, feature(doc_cfg))] -#![forbid(unsafe_code)] pub use digest; use keccak::{Keccak, State1600};