nostr_sdk_net/
lib.rs

1// Copyright (c) 2022-2023 Yuki Kishimoto
2// Copyright (c) 2023-2024 Rust Nostr Developers
3// Distributed under the MIT software license
4
5//! Nostr SDK Network
6
7#![forbid(unsafe_code)]
8
9pub extern crate futures_util;
10
11#[cfg(not(target_arch = "wasm32"))]
12pub mod native;
13#[cfg(target_arch = "wasm32")]
14pub mod wasm;
15
16#[cfg(not(target_arch = "wasm32"))]
17pub use self::native::Message as WsMessage;
18#[cfg(target_arch = "wasm32")]
19pub use wasm_ws::WsMessage;