diff --git a/crates/nostr-sdk-net/src/lib.rs b/crates/nostr-sdk-net/src/lib.rs index 12cba313a..6c5c0c528 100644 --- a/crates/nostr-sdk-net/src/lib.rs +++ b/crates/nostr-sdk-net/src/lib.rs @@ -3,6 +3,8 @@ //! Nostr SDK Network +#![forbid(unsafe_code)] + pub extern crate futures_util; #[cfg(not(target_arch = "wasm32"))] diff --git a/crates/nostr-sdk/src/lib.rs b/crates/nostr-sdk/src/lib.rs index 41dfefb8b..309f8884a 100644 --- a/crates/nostr-sdk/src/lib.rs +++ b/crates/nostr-sdk/src/lib.rs @@ -1,6 +1,7 @@ // Copyright (c) 2022-2023 Yuki Kishimoto // Distributed under the MIT software license +#![forbid(unsafe_code)] #![warn(missing_docs)] #![warn(rustdoc::bare_urls)] diff --git a/crates/nostr/src/lib.rs b/crates/nostr/src/lib.rs index 048142451..931180321 100644 --- a/crates/nostr/src/lib.rs +++ b/crates/nostr/src/lib.rs @@ -3,6 +3,7 @@ //! Rust implementation of the Nostr protocol. +#![forbid(unsafe_code)] #![warn(missing_docs)] #![warn(rustdoc::bare_urls)] #![cfg_attr(not(feature = "std"), no_std)]