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 bridge;
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 stats;
44pub mod storage;
45pub mod sync;
46pub mod verify;
47
48pub use error::{Error, Result, SyncwebError};
49pub use folder::archive_export;
50pub use folder::archive_import;
51pub use folder::archive_import::{DropImportOptions, DropImportResult, DropImporter, import_archive};
52pub use folder::archive_verify::{
53    DropVerificationResult, DropVerifier, DropVerifyResult, verify_archive, verify_drop_reader,
54};
55pub use sync::{ActiveSession, cancel_session, is_active};