1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//! # vflight
//!
//! Share files over the Veilid distributed network with content-addressable storage.
//!
//! ## Overview
//!
//! `vflight` enables secure, decentralized file sharing using the Veilid p2p network.
//! Files are chunked into 30KB pieces, hashed with BLAKE3, and stored in Veilid's DHT.
//!
//! ## Quick Example
//!
//! ```no_run
//! use vflight::chunker::chunk_file;
//! use std::path::Path;
//!
//! # async fn example() -> anyhow::Result<()> {
//! let chunks = chunk_file(Path::new("myfile.bin"))?;
//! for chunk in chunks {
//! println!("Chunk {}: {} bytes", chunk.index, chunk.data.len());
//! }
//! # Ok(())
//! # }
//! ```
//!
//! ## Key Modules
//!
//! - [`chunker`] - File splitting and reassembly with hashing
//! - [`compression`] - Zstd compression before chunking
//! - [`protocol`] - Network message definitions
//! - [`node`] - Veilid node lifecycle management
//! - [`seed`] - Seed files to the network
//! - [`fetch`] - Retrieve files from the network
//! - [`metrics`] - Performance metrics collection
//! - [`encryption`] - Chunk encryption for secure transfers
//! - [`resume`] - Resume state management for interrupted downloads
//! - [`throttle`] - Token-bucket bandwidth throttling for transfers
// Re-export commonly used types
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use Throttler;