lib

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

lib.rs (1889B)


      1 #![forbid(unsafe_code)]
      2 #![cfg_attr(not(feature = "std"), no_std)]
      3 
      4 extern crate alloc;
      5 #[cfg(feature = "std")]
      6 extern crate std;
      7 
      8 pub mod error;
      9 pub mod model;
     10 #[cfg(all(feature = "std", feature = "sqlcipher"))]
     11 pub mod store;
     12 
     13 pub mod prelude {
     14     pub use crate::error::RadrootsSimplexAppStoreError;
     15     pub use crate::model::{
     16         RadrootsSimplexAppChatDirection, RadrootsSimplexAppChatItem, RadrootsSimplexAppConnection,
     17         RadrootsSimplexAppContact, RadrootsSimplexAppConversation, RadrootsSimplexAppDiagnostics,
     18         RadrootsSimplexAppInboundChildEvent, RadrootsSimplexAppInboundCommit,
     19         RadrootsSimplexAppInboundMessageLogEntry, RadrootsSimplexAppInboundTextRequest,
     20         RadrootsSimplexAppInboundUnsupportedEventRequest, RadrootsSimplexAppOutboundTextDraft,
     21         RadrootsSimplexAppOutboundTextRequest, RadrootsSimplexAppOutboxMessage,
     22         RadrootsSimplexAppProfile, RadrootsSimplexAppQueueEndpoint,
     23         RadrootsSimplexAppUnsupportedProtocolEvent,
     24     };
     25     #[cfg(all(feature = "std", feature = "sqlcipher"))]
     26     pub use crate::store::RadrootsSimplexAppStore;
     27 }
     28 
     29 pub use error::RadrootsSimplexAppStoreError;
     30 pub use model::{
     31     RadrootsSimplexAppChatDirection, RadrootsSimplexAppChatItem, RadrootsSimplexAppConnection,
     32     RadrootsSimplexAppContact, RadrootsSimplexAppConversation, RadrootsSimplexAppDiagnostics,
     33     RadrootsSimplexAppInboundChildEvent, RadrootsSimplexAppInboundCommit,
     34     RadrootsSimplexAppInboundMessageLogEntry, RadrootsSimplexAppInboundTextRequest,
     35     RadrootsSimplexAppInboundUnsupportedEventRequest, RadrootsSimplexAppOutboundTextDraft,
     36     RadrootsSimplexAppOutboundTextRequest, RadrootsSimplexAppOutboxMessage,
     37     RadrootsSimplexAppProfile, RadrootsSimplexAppQueueEndpoint,
     38     RadrootsSimplexAppUnsupportedProtocolEvent,
     39 };
     40 #[cfg(all(feature = "std", feature = "sqlcipher"))]
     41 pub use store::RadrootsSimplexAppStore;