Skip to main content

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//! - `error`: Common error types and `Result` aliases.
14//! - `filter`: Tools for filtering files during synchronization and scanning.
15//! - `folder`: Management of synchronized folders, collections, and packages.
16//! - `fs`: File system utilities, including parallel scanning.
17//! - `indexing`: Opt-in SQLite/FTS5 indexing for synchronized folders.
18//! - `net`: Network management and routing configurations.
19//! - `node`: Iroh node integration and identity management.
20//! - `search`: Find engine for querying synchronized assets.
21//! - `sync`: The core synchronization engine and session management.
22//!
23pub mod bandwidth_stats;
24pub mod daemon;
25pub mod editorial;
26pub mod error;
27pub mod filter;
28pub mod folder;
29pub mod fs;
30pub mod gossip;
31pub mod indexing;
32pub mod init;
33pub mod media;
34pub mod mirror;
35pub mod net;
36pub mod node;
37pub mod parsing;
38pub mod schedule;
39pub mod search;
40pub mod snapshot;
41pub mod sort;
42pub mod stat;
43pub mod storage;
44pub mod sync;
45pub mod verify;
46
47pub use error::{Result, SyncwebError};
48pub use folder::archive_export::{DropExportOptions, DropExportResult, DropExporter, export_archive};
49pub use folder::archive_import;
50pub use folder::archive_import::{DropImportOptions, DropImportResult, DropImporter, import_archive};
51pub use folder::archive_verify::{
52    DropVerificationResult, DropVerifier, DropVerifyResult, verify_archive, verify_drop_reader,
53};
54pub use sync::{ActiveSession, cancel_session, is_active};