Skip to content

Commit 4c3e474

Browse files
committed
ffi: temp add #![cfg(target_arch = "wasm32")]
1 parent e492def commit 4c3e474

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

bindings/nostr-js/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ JavaScript bindings of the [`nostr`](https://crates.io/crates/nostr) crate.
66

77
This library - should - work on every JavaScript environment (nodejs, web, react native, ...).
88

9-
Check also [`@rust-nostr/nostr-nodejs`](https://www.npmjs.com/package/@rust-nostr/nostr-nodejs) for the NodeJs bindings (works only on native environments, not on web).
10-
119
## Getting started
1210

1311
```sh

bindings/nostr-js/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// Distributed under the MIT software license
33

44
#![allow(clippy::drop_non_drop)]
5+
// TODO: remove when `per-package-target` feature will be stable
6+
#![cfg(target_arch = "wasm32")]
57

68
use wasm_bindgen::prelude::*;
79

bindings/nostr-sdk-js/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// Distributed under the MIT software license
33

44
#![allow(clippy::drop_non_drop)]
5+
// TODO: remove when `per-package-target` feature will be stable
6+
#![cfg(target_arch = "wasm32")]
57

68
use wasm_bindgen::prelude::*;
79

0 commit comments

Comments
 (0)