lib

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

lib.rs (1358B)


      1 #![forbid(unsafe_code)]
      2 #![cfg_attr(coverage_nightly, feature(coverage_attribute))]
      3 #![cfg_attr(not(feature = "std"), no_std)]
      4 
      5 #[cfg(not(feature = "std"))]
      6 extern crate alloc;
      7 
      8 mod canonical;
      9 pub mod emit;
     10 pub mod error;
     11 mod event_head;
     12 mod geo;
     13 #[cfg(feature = "legacy-ingest")]
     14 pub mod ingest;
     15 pub mod sync_state;
     16 pub mod types;
     17 
     18 pub use emit::{
     19     radroots_replica_farm_event, radroots_replica_list_set_events,
     20     radroots_replica_membership_claim_events, radroots_replica_plot_events,
     21     radroots_replica_sync_all, radroots_replica_sync_all_with_options,
     22 };
     23 pub use error::RadrootsReplicaEventsError;
     24 #[cfg(feature = "legacy-ingest")]
     25 pub use ingest::{
     26     RadrootsReplicaIdFactory, RadrootsReplicaIngestOutcome, radroots_replica_ingest_event_head,
     27     radroots_replica_ingest_event_with_factory,
     28 };
     29 pub use sync_state::{
     30     RadrootsReplicaPendingPublishBatch, RadrootsReplicaPendingPublishEvent,
     31     RadrootsReplicaSyncStatus, radroots_replica_pending_publish_batch,
     32     radroots_replica_sync_status,
     33 };
     34 pub use types::{
     35     RADROOTS_REPLICA_TRANSFER_VERSION, RadrootsReplicaEventDraft, RadrootsReplicaFarmSelector,
     36     RadrootsReplicaSyncBundle, RadrootsReplicaSyncOptions, RadrootsReplicaSyncRequest,
     37 };
     38 
     39 #[cfg(feature = "legacy-ingest")]
     40 pub use ingest::{RadrootsReplicaDefaultIdFactory, radroots_replica_ingest_event};
     41 
     42 #[cfg(test)]
     43 mod tests;