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
59
60
61
62
63
64
65
66
//! Per-format submodules added in v3.0.
//!
//! Each module here owns the parser (and, in v3.1+, the writer) for
//! one disk-image or filesystem format. They share three conventions:
//!
//! 1. **Detection by magic bytes only.** Every public `detect_*`
//! function reads a small header, returns quickly with a clear
//! error if the magic doesn't match, and leaves the file cursor
//! in a defined state.
//! 2. **`TreeNode` is the output type.** A successful parse yields
//! the same shape the v2 `iso9660`/`udf` parsers produce — root
//! directory at `"/"`, partitions or files as children, byte
//! ranges populated for `cat_node` / `extract_node`.
//! 3. **Feature-gated.** Each module sits behind a Cargo feature so
//! consumers who only want ISO/UDF aren't paying for everything.
//! See `Cargo.toml` for the matrix.
//!
//! The Phase 3 starter set is below. Subsequent formats follow the same pattern.