Commit 83b2e22
committed
docs: add comprehensive Rustdoc comments and fix inaccurate help text
Add module-level documentation (//!) and doc comments (///) to all
source files to support `cargo doc` and prepare for `cargo rdme`
README generation.
Changes per file:
- main.rs: Add top-level crate documentation with usage overview and
subcommand table; add #![deny(missing_docs)] to enforce documentation
on public items; fix SnpGuestCmd variant descriptions to match actual
behavior
- report.rs: Document ReportArgs fields accurately; fix --random help
(was misleading about default file path); fix --platform help to
describe vTPM retrieval on Azure CVMs
- certs.rs: Document CertPaths, CertFormat, CertificatesArgs, and all
public functions
- fetch.rs: Document FetchCmd, Endorsement, ProcType enums; document
all submodule Args structs and functions; improve fetch ca/vcek/crl
argument descriptions
- verify.rs: Fix critical help text errors from issue virtee#132: --tcb now
correctly described as "verify TCB only (skip signature)" instead of
"run TCB verification exclusively"; --signature now correctly
described as "verify signature only (skip TCB)" instead of "run
signature verification exclusively"; document decode_hex_or_decimal
behavior mismatch (issue virtee#135); document all verification functions
- display.rs: Document DisplayCmd and subcommand functions
- key.rs: Document KeyArgs with accurate Guest Field Select bit
descriptions; document message version auto-selection behavior
- ok.rs: Document SEV status MSR bitfield and capability test framework
- preattestation.rs: Document all generate subcommands (measurement,
ovmf-hash, id-block, key-digest) with accurate argument descriptions
- clparser/mod.rs: Document auto-radix parser and FromStrRadix trait
- hyperv/mod.rs: Document Hyper-V detection logic and vTPM report
retrieval
Source of truth: actual code behavior on main branch and the corrected
README.md from PR virtee#139 (docs-overhaul branch).
https://claude.ai/code/session_01YFz1JMARmZYNFwTQ6juM7Z1 parent 19fc1af commit 83b2e22
11 files changed
Lines changed: 457 additions & 145 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
3 | 9 | | |
4 | 10 | | |
5 | 11 | | |
| |||
17 | 23 | | |
18 | 24 | | |
19 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
20 | 29 | | |
| 30 | + | |
21 | 31 | | |
| 32 | + | |
22 | 33 | | |
| 34 | + | |
23 | 35 | | |
24 | 36 | | |
25 | 37 | | |
| 38 | + | |
26 | 39 | | |
27 | 40 | | |
28 | | - | |
| 41 | + | |
29 | 42 | | |
30 | 43 | | |
31 | | - | |
| 44 | + | |
32 | 45 | | |
33 | 46 | | |
34 | 47 | | |
| |||
52 | 65 | | |
53 | 66 | | |
54 | 67 | | |
55 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
56 | 72 | | |
57 | 73 | | |
58 | 74 | | |
| |||
88 | 104 | | |
89 | 105 | | |
90 | 106 | | |
91 | | - | |
| 107 | + | |
92 | 108 | | |
93 | 109 | | |
94 | 110 | | |
| |||
117 | 133 | | |
118 | 134 | | |
119 | 135 | | |
120 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
121 | 141 | | |
122 | 142 | | |
123 | 143 | | |
| |||
164 | 184 | | |
165 | 185 | | |
166 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
167 | 191 | | |
168 | 192 | | |
169 | | - | |
| 193 | + | |
170 | 194 | | |
171 | 195 | | |
172 | 196 | | |
173 | | - | |
| 197 | + | |
174 | 198 | | |
175 | 199 | | |
176 | 200 | | |
177 | 201 | | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
178 | 207 | | |
179 | 208 | | |
180 | 209 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
3 | 9 | | |
4 | 10 | | |
5 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
6 | 18 | | |
7 | 19 | | |
8 | 20 | | |
| |||
16 | 28 | | |
17 | 29 | | |
18 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
19 | 34 | | |
| 35 | + | |
20 | 36 | | |
21 | 37 | | |
22 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
3 | 8 | | |
4 | 9 | | |
5 | 10 | | |
6 | 11 | | |
| 12 | + | |
7 | 13 | | |
8 | 14 | | |
9 | | - | |
| 15 | + | |
10 | 16 | | |
11 | 17 | | |
12 | | - | |
| 18 | + | |
13 | 19 | | |
14 | 20 | | |
15 | 21 | | |
| 22 | + | |
16 | 23 | | |
17 | 24 | | |
18 | 25 | | |
| |||
22 | 29 | | |
23 | 30 | | |
24 | 31 | | |
| 32 | + | |
25 | 33 | | |
26 | 34 | | |
27 | | - | |
| 35 | + | |
28 | 36 | | |
29 | 37 | | |
30 | 38 | | |
31 | 39 | | |
32 | | - | |
| 40 | + | |
33 | 41 | | |
34 | 42 | | |
35 | 43 | | |
| |||
45 | 53 | | |
46 | 54 | | |
47 | 55 | | |
| 56 | + | |
48 | 57 | | |
49 | 58 | | |
50 | | - | |
| 59 | + | |
51 | 60 | | |
52 | 61 | | |
53 | 62 | | |
54 | 63 | | |
55 | | - | |
| 64 | + | |
56 | 65 | | |
57 | 66 | | |
58 | 67 | | |
| |||
62 | 71 | | |
63 | 72 | | |
64 | 73 | | |
65 | | - | |
66 | 74 | | |
67 | 75 | | |
68 | 76 | | |
| |||
0 commit comments