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 daemon;
24pub mod error;
25pub mod filter;
26pub mod folder;
27pub mod fs;
28pub mod indexing;
29pub mod init;
30pub mod net;
31pub mod node;
32pub mod parsing;
33pub mod schedule;
34pub mod search;
35pub mod snapshot;
36pub mod sort;
37pub mod stat;
38pub mod stats;
39pub mod storage;
40pub mod sync;
41pub mod verify;
42
43pub use error::{Error, Result, SyncwebError};
44pub use folder::archive_export;
45pub use folder::archive_import;
46pub use folder::archive_import::{DropImportOptions, DropImportResult, DropImporter, import_archive};
47pub use folder::archive_verify::{
48    DropVerificationResult, DropVerifier, DropVerifyResult, verify_archive, verify_drop_reader,
49};
50pub use sync::{ActiveSession, cancel_session, is_active};