Commit a68f2c2
committed
Pass --emit=invocation-specific for crate builds
This avoids copying shared files for crates other than the empty
library. This
a) Allows removing `copy_doc_dir`, which allows crates to add their own custom CSS (with `--theme` or otherwise), and
b) Avoids unnecessary disk IO.
Here are the files generated for a build of regex 1.4.1:
```
cratesfyi=# select path from files where path like '%regex/1.4.1%' and path not like '%regex/1.4.1/%/%';
path
-----------------------------------------------------------------------
sources/regex/1.4.1/PERFORMANCE.md
rustdoc/regex/1.4.1/.lock
sources/regex/1.4.1/Cargo.toml
sources/regex/1.4.1/.cargo_vcs_info.json
sources/regex/1.4.1/LICENSE-APACHE
rustdoc/regex/1.4.1/source-files-20210402-1.53.0-nightly-138fd56cf.js
rustdoc/regex/1.4.1/settings.html
rustdoc/regex/1.4.1/search-index-20210402-1.53.0-nightly-138fd56cf.js
rustdoc/regex/1.4.1/crates-20210402-1.53.0-nightly-138fd56cf.js
sources/regex/1.4.1/CHANGELOG.md
sources/regex/1.4.1/LICENSE-MIT
sources/regex/1.4.1/rustfmt.toml
sources/regex/1.4.1/HACKING.md
sources/regex/1.4.1/test
sources/regex/1.4.1/Cargo.toml.orig
sources/regex/1.4.1/UNICODE.md
sources/regex/1.4.1/.gitignore
sources/regex/1.4.1/Cargo.lock
sources/regex/1.4.1/README.md
(19 rows)
```
Note in particular that search-index.js and crates.js are included, but
not shared files like `storage.js` or `rustdoc.css`.1 parent 11dfd38 commit a68f2c2
3 files changed
+19
-57
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
| 190 | + | |
201 | 191 | | |
202 | 192 | | |
203 | 193 | | |
| |||
207 | 197 | | |
208 | 198 | | |
209 | 199 | | |
210 | | - | |
| 200 | + | |
211 | 201 | | |
212 | 202 | | |
213 | 203 | | |
| |||
317 | 307 | | |
318 | 308 | | |
319 | 309 | | |
320 | | - | |
| 310 | + | |
321 | 311 | | |
322 | 312 | | |
323 | 313 | | |
| |||
423 | 413 | | |
424 | 414 | | |
425 | 415 | | |
426 | | - | |
| 416 | + | |
427 | 417 | | |
428 | 418 | | |
429 | 419 | | |
| |||
499 | 489 | | |
500 | 490 | | |
501 | 491 | | |
502 | | - | |
| 492 | + | |
503 | 493 | | |
504 | 494 | | |
505 | 495 | | |
506 | 496 | | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
507 | 503 | | |
508 | 504 | | |
509 | 505 | | |
| |||
620 | 616 | | |
621 | 617 | | |
622 | 618 | | |
623 | | - | |
| 619 | + | |
624 | 620 | | |
625 | 621 | | |
626 | 622 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
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 | | - | |
| 5 | + | |
| 6 | + | |
31 | 7 | | |
32 | 8 | | |
33 | 9 | | |
34 | 10 | | |
35 | 11 | | |
36 | 12 | | |
37 | | - | |
38 | | - | |
| 13 | + | |
| 14 | + | |
39 | 15 | | |
40 | 16 | | |
41 | 17 | | |
| |||
62 | 38 | | |
63 | 39 | | |
64 | 40 | | |
65 | | - | |
66 | 41 | | |
67 | | - | |
68 | | - | |
69 | 42 | | |
70 | 43 | | |
71 | | - | |
| 44 | + | |
72 | 45 | | |
73 | | - | |
74 | 46 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | 47 | | |
82 | 48 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments