|
39 | 39 | }
|
40 | 40 | }
|
41 | 41 |
|
42 |
| - figure, |
43 |
| - .project-size, |
44 |
| - .profile-results { |
45 |
| - border-collapse: collapse; |
46 |
| - margin-left: auto; |
47 |
| - margin-right: auto; |
48 |
| - } |
49 |
| - |
50 | 42 | figure {
|
51 | 43 | text-align: center;
|
52 | 44 | }
|
|
79 | 71 |
|
80 | 72 | .project-size tr.subtotal td,
|
81 | 73 | .project-size tr.subtotal th {
|
82 |
| - border-bottom: 1px solid #aaa; |
83 |
| - padding-bottom: 0.5em; |
84 | 74 | color: #999933;
|
| 75 | + padding-bottom: 0.5rem; |
85 | 76 | }
|
86 | 77 | @media (prefers-color-scheme: dark) {
|
87 | 78 | .project-size tr.subtotal td,
|
88 | 79 | .project-size tr.subtotal th {
|
89 |
| - border-bottom-color: #000; |
90 | 80 | color: #e4e499;
|
91 | 81 | }
|
92 | 82 | }
|
|
100 | 90 | }
|
101 | 91 | }
|
102 | 92 |
|
| 93 | + .project-size tr.subtotal td, |
| 94 | + .project-size tr.subtotal th { |
| 95 | + border-bottom-style: dashed; |
| 96 | + } |
| 97 | + .project-size .dependencies tr:first-child td, |
| 98 | + .project-size .dependencies tr:first-child th { |
| 99 | + border-top-style: dashed; |
| 100 | + } |
| 101 | + |
103 | 102 | .file-tree,
|
104 | 103 | .file-tree ul {
|
105 | 104 | text-align: left;
|
@@ -642,26 +641,31 @@ <h3>The rewrite</h3>
|
642 | 641 | <th><abbr title="dependency">dep</abbr>: Google Test</th>
|
643 | 642 | <td>69.7k</td>
|
644 | 643 | <td></td>
|
| 644 | + <td></td> |
645 | 645 | </tr>
|
646 | 646 | <tr>
|
647 | 647 | <th>dep: autocfg</th>
|
648 | 648 | <td></td>
|
649 | 649 | <td>0.6k</td>
|
| 650 | + <td></td> |
650 | 651 | </tr>
|
651 | 652 | <tr>
|
652 | 653 | <th>dep: lazy_static</th>
|
653 | 654 | <td></td>
|
654 | 655 | <td>0.4k</td>
|
| 656 | + <td></td> |
655 | 657 | </tr>
|
656 | 658 | <tr>
|
657 | 659 | <th>dep: libc</th>
|
658 | 660 | <td></td>
|
659 | 661 | <td>88.6k</td>
|
| 662 | + <td></td> |
660 | 663 | </tr>
|
661 | 664 | <tr>
|
662 | 665 | <th>dep: memoffset</th>
|
663 | 666 | <td></td>
|
664 | 667 | <td>0.6k</td>
|
| 668 | + <td></td> |
665 | 669 | </tr>
|
666 | 670 | </tbody>
|
667 | 671 | </table>
|
@@ -1280,7 +1284,7 @@ <h3 id="optimizing-rust-with-lighter-dependencies">
|
1280 | 1284 | The <code>libc</code> crate has a feature called <code>std</code>. Let's
|
1281 | 1285 | turn it off, test it, and see if build times improve:
|
1282 | 1286 |
|
1283 |
| - <figure style="width: 28em"> |
| 1287 | + <figure style="max-width: 29em"> |
1284 | 1288 | <figcaption>Cargo.toml</figcaption>
|
1285 | 1289 | <pre class="diff"><code> [dependencies]
|
1286 | 1290 | <ins>libc = { version = "0.2.138", default-features = false }</ins>
|
@@ -1316,7 +1320,7 @@ <h3 id="optimizing-rust-with-cargo-nextest">cargo-nextest</h3>
|
1316 | 1320 | On my Linux machine, cargo-nextest either doesn't help or makes things
|
1317 | 1321 | worse. The output does look pretty, though...
|
1318 | 1322 |
|
1319 |
| - <figure style="width: 40em"> |
| 1323 | + <figure style="max-width: 43.5em"> |
1320 | 1324 | <figcaption>sample cargo-nextest test output</figcaption>
|
1321 | 1325 | <pre><font color="#859900"><b>PASS</b></font> [ 0.002s] <font color="#D33682"><b> cpp_vs_rust::test_locale</b></font> <font color="#268BD2"><b>no_match</b></font>
|
1322 | 1326 | <font color="#859900"><b>PASS</b></font> [ 0.002s] <font color="#D33682"><b> cpp_vs_rust::test_offset_of</b></font> <font color="#268BD2"><b>fields_have_different_offsets</b></font>
|
|
0 commit comments