Skip to main content

hashtree_cli/
lib.rs

1pub mod config;
2pub mod daemon;
3pub mod fetch;
4pub mod nostr_relay;
5pub mod server;
6pub mod storage;
7pub mod sync;
8
9#[cfg(feature = "p2p")]
10pub mod webrtc;
11#[cfg(not(feature = "p2p"))]
12pub mod webrtc_stub;
13#[cfg(not(feature = "p2p"))]
14pub use webrtc_stub as webrtc;
15
16#[cfg(feature = "nostrdb")]
17pub mod nostrdb_integration;
18#[cfg(not(feature = "nostrdb"))]
19pub mod nostrdb_stub;
20#[cfg(feature = "nostrdb")]
21pub use nostrdb_integration as socialgraph;
22#[cfg(not(feature = "nostrdb"))]
23pub use nostrdb_stub as socialgraph;
24
25pub use config::Config;
26pub use fetch::{FetchConfig, Fetcher};
27pub use hashtree_resolver::nostr::{NostrResolverConfig, NostrRootResolver};
28pub use hashtree_resolver::{
29    Keys as NostrKeys, ResolverEntry, ResolverError, RootResolver, ToBech32 as NostrToBech32,
30};
31pub use server::HashtreeServer;
32pub use storage::{
33    CachedRoot, HashtreeStore, StorageByPriority, TreeMeta, PRIORITY_FOLLOWED, PRIORITY_OTHER,
34    PRIORITY_OWN,
35};
36pub use sync::{BackgroundSync, SyncConfig, SyncPriority, SyncStatus, SyncTask};
37pub use webrtc::{ConnectionState, WebRTCState};
38#[cfg(feature = "p2p")]
39pub use webrtc::{
40    ContentStore, DataMessage, PeerClassifier, PeerId, PeerPool, PoolConfig, PoolSettings,
41    WebRTCConfig, WebRTCManager,
42};