lib

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

lib.rs (1317B)


      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 pub mod ingest;
     14 pub mod sync_state;
     15 pub mod types;
     16 
     17 pub use emit::{
     18     radroots_replica_farm_event, radroots_replica_list_set_events,
     19     radroots_replica_membership_claim_events, radroots_replica_plot_events,
     20     radroots_replica_profile_events, radroots_replica_sync_all,
     21     radroots_replica_sync_all_with_options,
     22 };
     23 pub use error::RadrootsReplicaEventsError;
     24 pub use ingest::{
     25     RadrootsReplicaIdFactory, RadrootsReplicaIngestOutcome, radroots_replica_ingest_event_head,
     26     radroots_replica_ingest_event_with_factory,
     27 };
     28 pub use sync_state::{
     29     RadrootsReplicaPendingPublishBatch, RadrootsReplicaPendingPublishEvent,
     30     RadrootsReplicaSyncStatus, radroots_replica_pending_publish_batch,
     31     radroots_replica_sync_status,
     32 };
     33 pub use types::{
     34     RADROOTS_REPLICA_TRANSFER_VERSION, RadrootsReplicaEventDraft, RadrootsReplicaFarmSelector,
     35     RadrootsReplicaSyncBundle, RadrootsReplicaSyncOptions, RadrootsReplicaSyncRequest,
     36 };
     37 
     38 #[cfg(feature = "std")]
     39 pub use ingest::{RadrootsReplicaDefaultIdFactory, radroots_replica_ingest_event};
     40 
     41 #[cfg(test)]
     42 mod tests;