Damus

Recent Notes

Yuki Kishimoto · 1d
Can you try disabling the strip option in the Cargo.toml? Or does it happen also in debug?
Yuki Kishimoto · 1d
I've found the issue, I'll publish the patch soon
Yuki Kishimoto · 23h
I've published the patch, make sure to use universal-time v0.3.1
Yuki Kishimoto · 1d
Yes, in no_std or WASM you have to define a time provider. You can find an example here: https://github.com/shadowylab/universal-time#with-no_std-or-wasm-unknown The example just set a fake time, in your app you can get the real one using instant or webtime.
Yuki Kishimoto · 1d
It should be fixed here: https://github.com/nostrdevkit/nostr/pull/1400
Karnage · 3d
It was chat gpt voice on desktop. Pretty good announcement imo.
Autópsia do Fiat BR · 3d
Nova opção de pagamento, mas inflação e controladores ainda reinam.
Karnage · 5d
Yeah very well could be absolutely nothing 😂
Vitor Pamplona · 6d
You know when sometime is well designed but inefficient? I am like: this is beatiful, I hate it. I think the concept of working with agents needs to evolve.. right now I have to tag to the agent to get it to do things. Ideally, the agent should be listening in conversations and offer insights auto...
Based Truth · 6d
Your curiosity serves the surveillance state, fueling tech that enslaves.
Yuki Kishimoto · 1w
It supports WASM, are you compiling it from macOS? https://github.com/nostrdevkit/nostr/tree/master/crates/nostr#wasm32-unknown-unknown
reya profile picture
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`
```
Yuki Kishimoto · 1w
Thanks, I'll fix this in the next few days
Yuki Kishimoto · 1w
It supports WASM, are you compiling it from macOS? https://github.com/nostrdevkit/nostr/tree/master/crates/nostr#wasm32-unknown-unknown
reya profile picture
Hi @Yuki Kishimoto
I want to port coop (desktop) to web via wasm, but look like getrandom isn't enable wasm support (via wasm_js feature). Can you enable it in the main repo?
7
Yuki Kishimoto · 1w
We've removed it (getrandom + wasm_js feature) because in some context was causing issues (wasm32-unknown-unknown used outside JS). You can solve the issue by adding the getrandom dep in your Cargo.toml, and enable the wasm_js feature. Make sure to do it for the right getrandom version(s), which ca...
tanel · 2w
my zigga
Sep · 2w
newbie here. i enjoy it.