1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2026-03-11 22:58:45 +02:00
Files
comprehensive-rust/mdbook-course
dependabot[bot] e6142df931 cargo: bump the patch group with 5 updates (#3011)
Bumps the patch group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [log](https://github.com/rust-lang/log) | `0.4.28` | `0.4.29` |
| [serde_json](https://github.com/serde-rs/json) | `1.0.145` | `1.0.148`
|
| [tokio-websockets](https://github.com/Gelbpunkt/tokio-websockets) |
`0.13.0` | `0.13.1` |
| [cxx](https://github.com/dtolnay/cxx) | `1.0.190` | `1.0.192` |
| [cxx-build](https://github.com/dtolnay/cxx) | `1.0.190` | `1.0.192` |

Updates `log` from 0.4.28 to 0.4.29
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/rust-lang/log/releases">log's
releases</a>.</em></p>
<blockquote>
<h2>0.4.29</h2>
<h2>MSRV</h2>
<p>This release increases <code>log</code>'s MSRV from
<code>1.61.0</code> to <code>1.68.0</code>.</p>
<h2>What's Changed</h2>
<ul>
<li>docs: Add missing impls from README.md by <a
href="https://github.com/AldaronLau"><code>@​AldaronLau</code></a> in <a
href="https://redirect.github.com/rust-lang/log/pull/703">rust-lang/log#703</a></li>
<li>Point to new URLs for favicon and logo by <a
href="https://github.com/AldaronLau"><code>@​AldaronLau</code></a> in <a
href="https://redirect.github.com/rust-lang/log/pull/704">rust-lang/log#704</a></li>
<li>perf: reduce llvm-lines of FromStr for <code>Level</code> and
<code>LevelFilter</code> by <a
href="https://github.com/dishmaker"><code>@​dishmaker</code></a> in <a
href="https://redirect.github.com/rust-lang/log/pull/709">rust-lang/log#709</a></li>
<li>Replace serde with serde_core by <a
href="https://github.com/Thomasdezeeuw"><code>@​Thomasdezeeuw</code></a>
in <a
href="https://redirect.github.com/rust-lang/log/pull/712">rust-lang/log#712</a></li>
<li>Fix clippy lints by <a
href="https://github.com/Thomasdezeeuw"><code>@​Thomasdezeeuw</code></a>
in <a
href="https://redirect.github.com/rust-lang/log/pull/713">rust-lang/log#713</a></li>
<li>Use GitHub Actions to install Rust and cargo-hack by <a
href="https://github.com/Thomasdezeeuw"><code>@​Thomasdezeeuw</code></a>
in <a
href="https://redirect.github.com/rust-lang/log/pull/715">rust-lang/log#715</a></li>
<li>Exclude old unstable_kv features from testing matrix by <a
href="https://github.com/Thomasdezeeuw"><code>@​Thomasdezeeuw</code></a>
in <a
href="https://redirect.github.com/rust-lang/log/pull/716">rust-lang/log#716</a></li>
<li>Fix up CI by <a
href="https://github.com/KodrAus"><code>@​KodrAus</code></a> in <a
href="https://redirect.github.com/rust-lang/log/pull/718">rust-lang/log#718</a></li>
<li>Prepare for 0.4.29 release by <a
href="https://github.com/KodrAus"><code>@​KodrAus</code></a> in <a
href="https://redirect.github.com/rust-lang/log/pull/719">rust-lang/log#719</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a
href="https://github.com/AldaronLau"><code>@​AldaronLau</code></a> made
their first contribution in <a
href="https://redirect.github.com/rust-lang/log/pull/703">rust-lang/log#703</a></li>
<li><a href="https://github.com/dishmaker"><code>@​dishmaker</code></a>
made their first contribution in <a
href="https://redirect.github.com/rust-lang/log/pull/709">rust-lang/log#709</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/rust-lang/log/compare/0.4.28...0.4.29">https://github.com/rust-lang/log/compare/0.4.28...0.4.29</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/rust-lang/log/blob/master/CHANGELOG.md">log's
changelog</a>.</em></p>
<blockquote>
<h2>[0.4.29] - 2025-12-02</h2>
<h2>What's Changed</h2>
<ul>
<li>perf: reduce llvm-lines of FromStr for <code>Level</code> and
<code>LevelFilter</code> by <a
href="https://github.com/dishmaker"><code>@​dishmaker</code></a> in <a
href="https://redirect.github.com/rust-lang/log/pull/709">rust-lang/log#709</a></li>
<li>Replace serde with serde_core by <a
href="https://github.com/Thomasdezeeuw"><code>@​Thomasdezeeuw</code></a>
in <a
href="https://redirect.github.com/rust-lang/log/pull/712">rust-lang/log#712</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a
href="https://github.com/AldaronLau"><code>@​AldaronLau</code></a> made
their first contribution in <a
href="https://redirect.github.com/rust-lang/log/pull/703">rust-lang/log#703</a></li>
<li><a href="https://github.com/dishmaker"><code>@​dishmaker</code></a>
made their first contribution in <a
href="https://redirect.github.com/rust-lang/log/pull/709">rust-lang/log#709</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/rust-lang/log/compare/0.4.28...0.4.29">https://github.com/rust-lang/log/compare/0.4.28...0.4.29</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="b1e2df7bce"><code>b1e2df7</code></a>
Merge pull request <a
href="https://redirect.github.com/rust-lang/log/issues/719">#719</a>
from rust-lang/cargo/0.4.29</li>
<li><a
href="3fe1a546dc"><code>3fe1a54</code></a>
prepare for 0.4.29 release</li>
<li><a
href="7a432d9ab5"><code>7a432d9</code></a>
Merge pull request <a
href="https://redirect.github.com/rust-lang/log/issues/718">#718</a>
from rust-lang/ci/msrv</li>
<li><a
href="0689d56847"><code>0689d56</code></a>
rebump msrv to 1.68.0</li>
<li><a
href="46b448e2a7"><code>46b448e</code></a>
try drop msrv back to 1.61.0</li>
<li><a
href="929ab3812e"><code>929ab38</code></a>
fix up doc test feature gate</li>
<li><a
href="957cece478"><code>957cece</code></a>
bump serde-dependent crates</li>
<li><a
href="bea40c847c"><code>bea40c8</code></a>
bump msrv to 1.68.0</li>
<li><a
href="c540184ee9"><code>c540184</code></a>
Merge pull request <a
href="https://redirect.github.com/rust-lang/log/issues/716">#716</a>
from rust-lang/ci-smaller-matrix2</li>
<li><a
href="c971e636c4"><code>c971e63</code></a>
Merge branch 'master' into ci-smaller-matrix2</li>
<li>Additional commits viewable in <a
href="https://github.com/rust-lang/log/compare/0.4.28...0.4.29">compare
view</a></li>
</ul>
</details>
<br />

Updates `serde_json` from 1.0.145 to 1.0.148
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/serde-rs/json/releases">serde_json's
releases</a>.</em></p>
<blockquote>
<h2>v1.0.148</h2>
<ul>
<li>Update <code>zmij</code> dependency to 1.0</li>
</ul>
<h2>v1.0.147</h2>
<ul>
<li>Switch float-to-string algorithm from Ryū to Żmij for better f32 and
f64 serialization performance (<a
href="https://redirect.github.com/serde-rs/json/issues/1304">#1304</a>)</li>
</ul>
<h2>v1.0.146</h2>
<ul>
<li>Set fast_arithmetic=64 for riscv64 (<a
href="https://redirect.github.com/serde-rs/json/issues/1305">#1305</a>,
thanks <a
href="https://github.com/Xeonacid"><code>@​Xeonacid</code></a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="8b291c4c56"><code>8b291c4</code></a>
Release 1.0.148</li>
<li><a
href="1aefe15273"><code>1aefe15</code></a>
Update to zmij 1.0</li>
<li><a
href="62d6e8d615"><code>62d6e8d</code></a>
Release 1.0.147</li>
<li><a
href="fd829a65be"><code>fd829a6</code></a>
Merge pull request <a
href="https://redirect.github.com/serde-rs/json/issues/1304">#1304</a>
from dtolnay/zmij</li>
<li><a
href="e757a3d881"><code>e757a3d</code></a>
Switch from ryu -&gt; zmij for float formatting</li>
<li><a
href="75ad7e6b4e"><code>75ad7e6</code></a>
Release 1.0.146</li>
<li><a
href="bc6c8276d9"><code>bc6c827</code></a>
Merge pull request <a
href="https://redirect.github.com/serde-rs/json/issues/1305">#1305</a>
from Xeonacid/patch-1</li>
<li><a
href="a09210adf5"><code>a09210a</code></a>
Set fast_arithmetic=64 for riscv64</li>
<li><a
href="01182e54b5"><code>01182e5</code></a>
Update actions/upload-artifact@v5 -&gt; v6</li>
<li><a
href="383b13a45f"><code>383b13a</code></a>
Update actions/upload-artifact@v4 -&gt; v5</li>
<li>Additional commits viewable in <a
href="https://github.com/serde-rs/json/compare/v1.0.145...v1.0.148">compare
view</a></li>
</ul>
</details>
<br />

Updates `tokio-websockets` from 0.13.0 to 0.13.1
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/Gelbpunkt/tokio-websockets/blob/main/CHANGELOG.md">tokio-websockets's
changelog</a>.</em></p>
<blockquote>
<h2>[0.13.1] - 2025-12-28</h2>
<h3>Added</h3>
<ul>
<li>The new <code>WebSocketStream::into_inner</code> method discards the
WebSocket stream and provides you with the raw underlying I/O</li>
<li>It is now possible to add custom headers to the built-in server's
Switching Protocols response via
<code>ServerBuilder::add_header</code></li>
</ul>
<h3>Fixed</h3>
<ul>
<li>Compilation with the <code>nightly</code> feature enabled on s390x
now works with the latest nightlies again</li>
<li>Fixed a case of UB in the ARM NEON intrinsic code uncovered by
Miri</li>
</ul>
<h3>Other</h3>
<ul>
<li>CI now test builds all feature combinations on architectures
supported by the SIMD code (aarch64, loongarch64, ppc64le, s390x,
x86_64)</li>
<li>Further, on aarch64, ppc64le, s390x and x86_64 we now also run the
tests with Miri</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a
href="https://github.com/Gelbpunkt/tokio-websockets/commits">compare
view</a></li>
</ul>
</details>
<br />

Updates `cxx` from 1.0.190 to 1.0.192
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/dtolnay/cxx/releases">cxx's
releases</a>.</em></p>
<blockquote>
<h2>1.0.192</h2>
<ul>
<li>Add support for <code>Vec&lt;Box&lt;T&gt;&gt;</code> (<a
href="https://redirect.github.com/dtolnay/cxx/issues/1681">#1681</a>,
thanks <a
href="https://github.com/anforowicz"><code>@​anforowicz</code></a>)</li>
</ul>
<h2>1.0.191</h2>
<ul>
<li>Suppress a GCC 15 warning false-positive in generated C++ code (<a
href="https://redirect.github.com/dtolnay/cxx/issues/1686">#1686</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="0d80b35188"><code>0d80b35</code></a>
Release 1.0.192</li>
<li><a
href="7672ce9292"><code>7672ce9</code></a>
Touch up PR 1681</li>
<li><a
href="7b522fe335"><code>7b522fe</code></a>
Merge pull request <a
href="https://redirect.github.com/dtolnay/cxx/issues/1681">#1681</a>
from anforowicz/vec-of-box</li>
<li><a
href="7a9cad2072"><code>7a9cad2</code></a>
Add support for <code>Vec\&lt;Box&lt;T&gt;&gt;</code>.</li>
<li><a
href="de37eeb83b"><code>de37eeb</code></a>
Avoid duplicate errors for <code>impl UniquePtr\&lt;Vec&lt;u8&gt;&gt;
{}</code>.</li>
<li><a
href="66774a5863"><code>66774a5</code></a>
Replace <code>fn local_type</code> in <code>generics.rs</code> with more
granular functions.</li>
<li><a
href="6ab7caabdf"><code>6ab7caa</code></a>
Release 1.0.191</li>
<li><a
href="1e7f23c020"><code>1e7f23c</code></a>
Lockfile update</li>
<li><a
href="133292fd70"><code>133292f</code></a>
Merge pull request <a
href="https://redirect.github.com/dtolnay/cxx/issues/1686">#1686</a>
from dtolnay/mismatchnewdelete</li>
<li><a
href="17ba90c02e"><code>17ba90c</code></a>
Ignore GCC 15's new mismatched-new-delete</li>
<li>Additional commits viewable in <a
href="https://github.com/dtolnay/cxx/compare/1.0.190...1.0.192">compare
view</a></li>
</ul>
</details>
<br />

Updates `cxx-build` from 1.0.190 to 1.0.192
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/dtolnay/cxx/releases">cxx-build's
releases</a>.</em></p>
<blockquote>
<h2>1.0.192</h2>
<ul>
<li>Add support for <code>Vec&lt;Box&lt;T&gt;&gt;</code> (<a
href="https://redirect.github.com/dtolnay/cxx/issues/1681">#1681</a>,
thanks <a
href="https://github.com/anforowicz"><code>@​anforowicz</code></a>)</li>
</ul>
<h2>1.0.191</h2>
<ul>
<li>Suppress a GCC 15 warning false-positive in generated C++ code (<a
href="https://redirect.github.com/dtolnay/cxx/issues/1686">#1686</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="0d80b35188"><code>0d80b35</code></a>
Release 1.0.192</li>
<li><a
href="7672ce9292"><code>7672ce9</code></a>
Touch up PR 1681</li>
<li><a
href="7b522fe335"><code>7b522fe</code></a>
Merge pull request <a
href="https://redirect.github.com/dtolnay/cxx/issues/1681">#1681</a>
from anforowicz/vec-of-box</li>
<li><a
href="7a9cad2072"><code>7a9cad2</code></a>
Add support for <code>Vec\&lt;Box&lt;T&gt;&gt;</code>.</li>
<li><a
href="de37eeb83b"><code>de37eeb</code></a>
Avoid duplicate errors for <code>impl UniquePtr\&lt;Vec&lt;u8&gt;&gt;
{}</code>.</li>
<li><a
href="66774a5863"><code>66774a5</code></a>
Replace <code>fn local_type</code> in <code>generics.rs</code> with more
granular functions.</li>
<li><a
href="6ab7caabdf"><code>6ab7caa</code></a>
Release 1.0.191</li>
<li><a
href="1e7f23c020"><code>1e7f23c</code></a>
Lockfile update</li>
<li><a
href="133292fd70"><code>133292f</code></a>
Merge pull request <a
href="https://redirect.github.com/dtolnay/cxx/issues/1686">#1686</a>
from dtolnay/mismatchnewdelete</li>
<li><a
href="17ba90c02e"><code>17ba90c</code></a>
Ignore GCC 15's new mismatched-new-delete</li>
<li>Additional commits viewable in <a
href="https://github.com/dtolnay/cxx/compare/1.0.190...1.0.192">compare
view</a></li>
</ul>
</details>
<br />


Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-01 03:52:43 +01:00
..
2025-09-20 11:38:54 +00:00

mdbook-course

This is an mdBook preprocessor to handle some specific details of Comprehensive Rust.

It provides three binaries:

  • mdbook-course -- the actual preprocessor
  • course-schedule -- prints the course schedule with timings
  • course-content -- dumps all course content to stdout, in order

Frontmatter

The preprocessor parses "frontmatter" -- YAML between --- at the beginning of a Markdown file -- and removes it from the rendered result.

Frontmatter is optional, and can contain any of the following fields, defined below:

minutes: NNN
target_minutes: NNN
course: COURSE NAME
session: SESSION NAME

Course Structure

A book can contain multiple courses. Each course is made up of sessions, which are blocks of instructional time (and include breaks). Typically two sessions are taught per day, morning and afternoon.

Each session is comprised of segments, which are slides on a related theme. Breaks are scheduled between segments.

Each segment is comprised of slides. A slide can be made up of one or more mdBook chapters.

The course structure is derived from the mdBook structure. Each top-level mdBook "section" is treated as a segment, and may optionally begin a new session or course. Within each section, the first chapter and subsequent second-level chapters are each treated as a slide. Any further-nested chapters are treated as parts of the parent slide. For example:

- [Frobnication](frobnication.md)
  - [Integer Frobnication](frobnication/integers.md)
  - [Frob Expansion](frobnication/expansion.md)
    - [Structs](frobnication/expansion-structs.md)
    - [Enums](frobnication/expansion-structs.md)
  - [Exercise](frobnication/exercise.md)
    - [Solution](frobnication/Solution.md)

In this segment, there are four slides: "Frobnication", "Integer Frobnication", "Frob Expansion", and "Exercise". The last two slides are made up of multiple chapters.

The first chapter of a segment can use the course and session fields in its frontmatter to indicate that it is the first segment in a session or course.

Timing

Each chapter should specify an estimate of the instructional time it will require in the minutes field. This information is summed, with breaks automatically added between segments, to give time estimates for segments, sessions, and courses.

Each session should list a target_minutes that is the target duration of the session.

Directives

Within the course material, the following directives can be used:

{{%segment outline}}
{{%session outline}}
{{%course outline}}
{{%course outline COURSENAME}}

These will be replaced with a markdown outline of the current segment, session, or course. The last directive can refer to another course by name and is used in the "Running the Course" section.

Course-Schedule Comments

The course-schedule binary generates Markdown output that is included in a GitHub pull request comment, based on the information provided in the above format.