Skip to content

Commit

Permalink
Add #![forbid(unsafe_code)]
Browse files Browse the repository at this point in the history
  • Loading branch information
yukibtc committed Oct 24, 2023
1 parent a806504 commit 617afbb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/nostr-sdk-net/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

//! Nostr SDK Network
#![forbid(unsafe_code)]

pub extern crate futures_util;

#[cfg(not(target_arch = "wasm32"))]
Expand Down
1 change: 1 addition & 0 deletions crates/nostr-sdk/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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)]

Expand Down
1 change: 1 addition & 0 deletions crates/nostr/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit 617afbb

Please sign in to comment.