Skip to main content

hashtree_cli/
lib.rs

1#![allow(unexpected_cfgs)]
2
3pub(crate) mod blob_cache;
4pub mod blossom_push;
5pub mod bootstrap;
6#[cfg(feature = "cashu")]
7pub mod cashu;
8#[cfg(feature = "cashu")]
9pub mod cashu_cli;
10pub mod cashu_helper;
11pub mod config;
12pub mod daemon;
13pub mod diagnostics;
14pub mod eviction;
15pub mod fetch;
16pub mod fips_transport;
17pub mod ignore_rules;
18mod managed_env;
19pub mod nostr_mirror;
20pub mod nostr_relay;
21pub mod pwa;
22pub mod server;
23pub mod storage;
24pub mod sync;
25
26pub mod webrtc_stub;
27pub use webrtc_stub as webrtc;
28pub mod p2p_common_stub;
29pub use p2p_common_stub as p2p_common;
30
31pub mod socialgraph;
32
33#[cfg(test)]
34pub mod test_support;
35
36pub use config::Config;
37pub use eviction::{spawn_background_eviction_task, BACKGROUND_EVICTION_INTERVAL};
38pub use fetch::{FetchConfig, FetchProgress, FetchProgressSnapshot, Fetcher};
39pub use hashtree_resolver::nostr::{NostrResolverConfig, NostrRootResolver};
40pub use hashtree_resolver::{
41    Keys as NostrKeys, ResolverEntry, ResolverError, RootResolver, ToBech32 as NostrToBech32,
42};
43pub use server::HashtreeServer;
44pub use storage::{
45    AddProgress, AddProgressSnapshot, CachedRoot, HashtreeStore, StorageByPriority, TreeMeta,
46    LOCAL_ADD_EXTERNAL_BLOB_DIR_NAME, PRIORITY_FOLLOWED, PRIORITY_OTHER, PRIORITY_OWN,
47};
48pub use sync::{BackgroundSync, SyncConfig, SyncPriority, SyncStatus, SyncTask};
49pub use webrtc::{ConnectionState, WebRTCState};