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
//! `rget` — a resumable, parallel HTTP download manager.
//!
//! The crate is split so that each concern can be tested on its own:
//!
//! | module | responsibility |
//! |---|---|
//! | [`cli`] | argument parsing, command dispatch |
//! | [`config`] | user settings and the first-run download-folder prompt |
//! | [`http`] | requests, redirects, metadata probing, range requests |
//! | [`engine`] | orchestration: probe → plan → transfer → verify |
//! | [`scheduler`] | range planning, worker assignment, dynamic splitting |
//! | [`worker`] | one range transfer at a time |
//! | [`storage`] | SQLite persistence |
//! | [`file`] | random-access writes, preallocation |
//! | [`resume`] | recovery, reconciliation, remote validation |
//! | [`retry`] | retry policy and backoff |
//! | [`integrity`] | checksums |
//! | [`progress`] | telemetry model, speed and ETA maths |
//! | [`ui`] | terminal rendering |
//! | [`mirror`] | mirror equivalence and source selection |
//! | [`naming`] | destination filename selection and sanitisation |
//! | [`limit`] | global bandwidth limiting |
//!
//! The one design document worth reading before changing anything:
//! `docs/CRASH_CONSISTENCY.md`.