lib.rs (1326B)
1 #![cfg_attr(not(feature = "std"), no_std)] 2 #![forbid(unsafe_code)] 3 4 #[cfg(not(feature = "std"))] 5 compile_error!("radroots_nostrdb requires the std feature"); 6 7 extern crate alloc; 8 9 #[cfg(test)] 10 mod test_fixtures; 11 12 #[cfg(feature = "nostrdb")] 13 pub mod config; 14 pub mod error; 15 #[cfg(feature = "nostrdb")] 16 pub mod filter; 17 #[cfg(feature = "nostrdb")] 18 pub mod ingest; 19 #[cfg(feature = "nostrdb")] 20 pub mod nostrdb; 21 #[cfg(feature = "nostrdb")] 22 pub mod query; 23 #[cfg(feature = "nostrdb")] 24 pub mod subscription; 25 26 pub mod prelude { 27 #[cfg(feature = "nostrdb")] 28 pub use crate::config::RadrootsNostrdbConfig; 29 pub use crate::error::RadrootsNostrdbError; 30 #[cfg(feature = "nostrdb")] 31 pub use crate::filter::RadrootsNostrdbFilterSpec; 32 #[cfg(feature = "nostrdb")] 33 pub use crate::ingest::RadrootsNostrdbIngestSource; 34 #[cfg(feature = "nostrdb")] 35 pub use crate::nostrdb::RadrootsNostrdb; 36 #[cfg(feature = "nostrdb")] 37 pub use crate::query::{RadrootsNostrdbNote, RadrootsNostrdbProfile, RadrootsNostrdbQuerySpec}; 38 #[cfg(all(feature = "nostrdb", feature = "rt"))] 39 pub use crate::subscription::RadrootsNostrdbSubscriptionStream; 40 #[cfg(feature = "nostrdb")] 41 pub use crate::subscription::{ 42 RadrootsNostrdbNoteKey, RadrootsNostrdbSubscriptionHandle, RadrootsNostrdbSubscriptionSpec, 43 }; 44 }