I got the dependency issues fixed. But look like async api ...

reya

npub1zfss807aer0j26mwp2la0ume0jqde3823rmu97ra6sgyyg956e0s6xw445

hex

7e0a08a1cb72c569bda3304c80d3bda2f01ead3ee275d2c6ce96614d61dacc2e

nevent

nevent1qqs8uzsg589h93tfhk3nqnyq6w769uq745lwyawjcm8fvc2dv8dvctsprpmhxue69uhhyetvv9ujuem4d36kwatvw5hx6mm9qgspycgrhlwu3he9ddhq407h7duheqxucn4g3a7zlp7agyzzyz6dvhcg0vz2y

Kind-1 (TextNote)

2026-07-18T07:17:14Z

↳ Reply to Event not found

14046cb24907c1ee4672c15ceaca57ca68cfffd92dd53a82c44d5d00e6542623...

I got the dependency issues fixed. But look like async api from sdk didn't work in wasm enviroment?

error: future cannot be sent between threads safely
   --> crates/state/src/lib.rs:307:12
    |
307 |         cx.background_spawn(async move {
    |            ^^^^^^^^^^^^^^^^ future created by async block is not `Send`
    |
    = help: the trait `std::marker::Send` is not implemented for `dyn futures::Future<Output = Result<nostr_sdk::prelude::Event, nostr_gossip_memory::prelude::Error>>`
note: future is not `Send` as it awaits another future which is not `Send`
   --> crates/state/src/lib.rs:309:25
    |
309 |               let event = EventBuilder::new(Kind::Custom(5315), "")
    |  _________________________^
310 | |                 .tags(vec![
311 | |                     Tag::custom("param", vec!["search", &query]),
312 | |                     Tag::custom("param", vec!["limit", "10"]),
313 | |                 ])
314 | |                 .finalize_async(&signer)
    | |________________________________________^ await occurs here on type `Pin<Box<dyn futures::Future<Output = Result<nostr_sdk::prelude::Event, nostr_gossip_memory::prelude::Error>>>>`, which is not `Send`
note: required by a bound in `background_spawn`

Raw JSON

{
  "kind": 1,
  "id": "7e0a08a1cb72c569bda3304c80d3bda2f01ead3ee275d2c6ce96614d61dacc2e",
  "pubkey": "126103bfddc8df256b6e0abfd7f3797c80dcc4ea88f7c2f87dd4104220b4d65f",
  "created_at": 1784359034,
  "tags": [
    [
      "e",
      "5fdd70019242f790b905479d327eafb3c190eb6f82f51df887785e5b34cdc1a2",
      "wss://relay.reya.su/",
      "root",
      "126103bfddc8df256b6e0abfd7f3797c80dcc4ea88f7c2f87dd4104220b4d65f"
    ],
    [
      "e",
      "14046cb24907c1ee4672c15ceaca57ca68cfffd92dd53a82c44d5d00e6542623",
      "wss://nos.lol/",
      "reply",
      "68d81165918100b7da43fc28f7d1fc12554466e1115886b9e7bb326f65ec4272"
    ],
    [
      "p",
      "68d81165918100b7da43fc28f7d1fc12554466e1115886b9e7bb326f65ec4272"
    ]
  ],
  "content": "I got the dependency issues fixed.  But look like async api from sdk didn't work in wasm enviroment?\n```\nerror: future cannot be sent between threads safely\n   --\u003e crates/state/src/lib.rs:307:12\n    |\n307 |         cx.background_spawn(async move {\n    |            ^^^^^^^^^^^^^^^^ future created by async block is not `Send`\n    |\n    = help: the trait `std::marker::Send` is not implemented for `dyn futures::Future\u003cOutput = Result\u003cnostr_sdk::prelude::Event, nostr_gossip_memory::prelude::Error\u003e\u003e`\nnote: future is not `Send` as it awaits another future which is not `Send`\n   --\u003e crates/state/src/lib.rs:309:25\n    |\n309 |               let event = EventBuilder::new(Kind::Custom(5315), \"\")\n    |  _________________________^\n310 | |                 .tags(vec![\n311 | |                     Tag::custom(\"param\", vec![\"search\", \u0026query]),\n312 | |                     Tag::custom(\"param\", vec![\"limit\", \"10\"]),\n313 | |                 ])\n314 | |                 .finalize_async(\u0026signer)\n    | |________________________________________^ await occurs here on type `Pin\u003cBox\u003cdyn futures::Future\u003cOutput = Result\u003cnostr_sdk::prelude::Event, nostr_gossip_memory::prelude::Error\u003e\u003e\u003e\u003e`, which is not `Send`\nnote: required by a bound in `background_spawn`\n```",
  "sig": "3bf03216485490c3763dd9db5d82a67d169ff4ab6b74da5c35ac6d495f44a8cbf709f71f5350e18588eeeaaa7998bfa5bcad41476c26362d988cd540029732ff"
}