nwc 0.45.0-alpha.7

Nostr Wallet Connect client
Documentation
1
2
3
4
5
6
7
8
use std::future::Future;
use std::pin::Pin;

#[cfg(not(all(target_arch = "wasm32", target_os = "unknown")))]
pub(crate) type BoxedFuture<'a, T> = Pin<Box<dyn Future<Output = T> + Send + 'a>>;

#[cfg(all(target_arch = "wasm32", target_os = "unknown"))]
pub(crate) type BoxedFuture<'a, T> = Pin<Box<dyn Future<Output = T> + 'a>>;