lib

Core libraries for Radroots
git clone https://radroots.dev/git/lib.git
Log | Files | Refs | README | LICENSE

lib.rs (856B)


      1 #![cfg_attr(not(feature = "std"), no_std)]
      2 #![forbid(unsafe_code)]
      3 
      4 extern crate alloc;
      5 
      6 pub mod error;
      7 pub mod types;
      8 
      9 #[cfg(all(feature = "nostr-client", feature = "rt"))]
     10 pub mod runtime;
     11 #[cfg(all(feature = "nostr-client", feature = "rt"))]
     12 pub mod sink;
     13 
     14 pub mod prelude {
     15     pub use crate::error::RadrootsNostrRuntimeError;
     16     #[cfg(all(feature = "nostr-client", feature = "rt"))]
     17     pub use crate::runtime::{RadrootsNostrRuntime, RadrootsNostrRuntimeBuilder};
     18     #[cfg(all(feature = "nostr-client", feature = "rt"))]
     19     pub use crate::sink::{RadrootsNostrEventSink, RadrootsNostrInMemoryEventSink};
     20     pub use crate::types::{
     21         RadrootsNostrConnectionSnapshot, RadrootsNostrRuntimeEvent,
     22         RadrootsNostrSubscriptionHandle, RadrootsNostrSubscriptionPolicy,
     23         RadrootsNostrSubscriptionSpec, RadrootsNostrTrafficLight,
     24     };
     25 }