syncweb_core/lib.rs
1//! # syncweb-core
2//!
3//! Core library for `syncweb`, enabling delay-tolerant web surfing and decentralized synchronization.
4//!
5//! This crate provides the foundational building blocks for the syncweb application, including:
6//! - Decentralized folder synchronization and package management.
7//! - Network and node management using the Iroh stack.
8//! - File system scanning, filtering, and statistical analysis.
9//! - Delay-tolerant networking capabilities.
10//!
11//! ## Modules
12//!
13//! - `allocation`: Deterministic, capacity-aware storage allocation.
14//! - `error`: Common error types and `Result` aliases.
15//! - `filter`: Tools for filtering files during synchronization and scanning.
16//! - `folder`: Management of synchronized folders, collections, and packages.
17//! - `fs`: File system utilities, including parallel scanning.
18//! - `indexing`: Opt-in SQLite/FTS5 indexing for synchronized folders.
19//! - `net`: Network management and routing configurations.
20//! - `node`: Iroh node integration and identity management.
21//! - `search`: Find engine for querying synchronized assets.
22//! - `sync`: The core synchronization engine and session management.
23//!
24pub mod allocation;
25pub mod bandwidth_stats;
26pub mod daemon;
27pub mod editorial;
28pub mod error;
29pub mod filter;
30pub mod folder;
31pub mod fs;
32pub mod gossip;
33pub mod indexing;
34pub mod init;
35pub mod media;
36pub mod mirror;
37pub mod net;
38pub mod node;
39pub mod parsing;
40pub mod schedule;
41pub mod search;
42pub mod snapshot;
43pub mod sort;
44pub mod stat;
45pub mod storage;
46pub mod sync;
47pub mod verify;
48
49pub use error::{Result, SyncwebError};
50pub use folder::archive_export::{DropExportOptions, DropExportResult, DropExporter, export_archive};
51pub use folder::archive_import;
52pub use folder::archive_import::{DropImportOptions, DropImportResult, DropImporter, import_archive};
53pub use folder::archive_verify::{
54 DropVerificationResult, DropVerifier, DropVerifyResult, verify_archive, verify_drop_reader,
55};
56pub use sync::{ActiveSession, cancel_session, is_active};