Join Nostr
2026-04-09 11:57:31 UTC
in reply to

Awiteb on Nostr: And you can build them as simple as this, using nostr-scrolls ```rust #![no_std] ...

And you can build them as simple as this, using nostr-scrolls

```rust
#![no_std]
#![no_main]

use nostr_scrolls::{PublicKey, Filter, cb};

#[allow(unused_must_use)]
#[nostr_scrolls::main]
fn run(me: PublicKey) {
let filter = Filter::new();
filter.author(&me);
filter.kind(1);
filter.close_on_eose();
filter.tag('t', "asknostr");

let sub = filter.subscribe();
sub.on_event(cb!(|event| {
nostr_scrolls::display(&event);
}));
}
```


https://github.com/rust-nostr/nostr-scrolls