radroots_nostr_ndb/
lib.rs1#![cfg_attr(not(feature = "std"), no_std)]
2#![forbid(unsafe_code)]
3
4#[cfg(not(feature = "std"))]
5compile_error!("radroots-nostr-ndb requires the std feature");
6
7extern crate alloc;
8
9#[cfg(feature = "ndb")]
10pub mod config;
11pub mod error;
12#[cfg(feature = "ndb")]
13pub mod filter;
14#[cfg(feature = "ndb")]
15pub mod ingest;
16#[cfg(feature = "ndb")]
17pub mod ndb;
18#[cfg(feature = "ndb")]
19pub mod query;
20#[cfg(all(feature = "ndb", feature = "runtime-adapter"))]
21pub mod runtime_adapter;
22#[cfg(feature = "ndb")]
23pub mod subscription;
24
25pub mod prelude {
26 #[cfg(feature = "ndb")]
27 pub use crate::config::RadrootsNostrNdbConfig;
28 pub use crate::error::RadrootsNostrNdbError;
29 #[cfg(feature = "ndb")]
30 pub use crate::filter::RadrootsNostrNdbFilterSpec;
31 #[cfg(feature = "ndb")]
32 pub use crate::ingest::RadrootsNostrNdbIngestSource;
33 #[cfg(feature = "ndb")]
34 pub use crate::ndb::RadrootsNostrNdb;
35 #[cfg(feature = "ndb")]
36 pub use crate::query::{
37 RadrootsNostrNdbNote, RadrootsNostrNdbProfile, RadrootsNostrNdbQuerySpec,
38 };
39 #[cfg(all(feature = "ndb", feature = "runtime-adapter"))]
40 pub use crate::runtime_adapter::RadrootsNostrNdbEventStoreAdapter;
41 #[cfg(all(feature = "ndb", feature = "rt"))]
42 pub use crate::subscription::RadrootsNostrNdbSubscriptionStream;
43 #[cfg(feature = "ndb")]
44 pub use crate::subscription::{
45 RadrootsNostrNdbNoteKey, RadrootsNostrNdbSubscriptionHandle,
46 RadrootsNostrNdbSubscriptionSpec,
47 };
48}