bevy_nostr 0.2.0

Bevy plugin for the Nostr protocol
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use bevy::prelude::*;
use nostr_sdk::prelude::{Event, EventId, PublicKey};

#[derive(Component, Debug)]
pub struct NostrEventId(pub EventId);

#[derive(Component, Debug)]
pub struct NostrEvent(pub Event);

#[derive(Component, PartialEq, Debug)]
pub struct NostrPublicKey(pub PublicKey);

#[derive(Component)]
pub struct DatabaseFetchEvent;

#[derive(Component)]
pub struct FetchingEvent;