1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2024-11-21 13:25:53 +02:00
This is the Rust course used by the Android team at Google. It provides you the material to quickly teach Rust.
Go to file
dependabot[bot] f7d2ab541a
cargo: bump cc from 1.1.23 to 1.1.31 in /src/bare-metal/aps/examples in the patch group (#2455)
Bumps the patch group in /src/bare-metal/aps/examples with 1 update:
[cc](https://github.com/rust-lang/cc-rs).

Updates `cc` from 1.1.23 to 1.1.31
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/rust-lang/cc-rs/releases">cc's
releases</a>.</em></p>
<blockquote>
<h2>cc-v1.1.31</h2>
<h3>Other</h3>
<ul>
<li>Add comment explaining why cc does not rebuild on env PATH change
(<a
href="https://redirect.github.com/rust-lang/cc-rs/pull/1247">#1247</a>)</li>
</ul>
<h2>cc-v1.1.30</h2>
<h3>Other</h3>
<ul>
<li>Don't pass -fPIC by default on wasm (<a
href="https://redirect.github.com/rust-lang/cc-rs/pull/1245">#1245</a>)</li>
</ul>
<h2>cc-v1.1.29</h2>
<h3>Other</h3>
<ul>
<li>Regenerate target info (<a
href="https://redirect.github.com/rust-lang/cc-rs/pull/1243">#1243</a>)</li>
</ul>
<h2>cc-v1.1.28</h2>
<h3>Other</h3>
<ul>
<li>Environment variables: For one accepting boolean, treat
&quot;0&quot;, &quot;false&quot; and empty env as false (<a
href="https://redirect.github.com/rust-lang/cc-rs/pull/1238">#1238</a>)</li>
</ul>
<h2>cc-v1.1.27</h2>
<h3>Other</h3>
<ul>
<li>Revert &quot;Use debug version of MSVC runtime library on debug (<a
href="https://redirect.github.com/rust-lang/cc-rs/pull/1231">#1231</a>)&quot;
(<a
href="https://redirect.github.com/rust-lang/cc-rs/pull/1237">#1237</a>)</li>
<li>Disable <code>CC_ENABLE_DEBUG_OUTPUT</code> if it is set to
&quot;0&quot; (<a
href="https://redirect.github.com/rust-lang/cc-rs/pull/1234">#1234</a>)</li>
</ul>
<h2>cc-v1.1.26</h2>
<h3>Other</h3>
<ul>
<li>Use debug version of MSVC runtime library on debug (<a
href="https://redirect.github.com/rust-lang/cc-rs/pull/1231">#1231</a>)</li>
</ul>
<h2>cc-v1.1.25</h2>
<h3>Other</h3>
<ul>
<li>Remove incorrect &quot;lib&quot; prefixes in CXXSTDLIB doc comments
(<a
href="https://redirect.github.com/rust-lang/cc-rs/pull/1228">#1228</a>)</li>
</ul>
<h2>cc-v1.1.24</h2>
<h3>Other</h3>
<ul>
<li>Fix wasm32-wasip1-threads: shared-memory disallowed due to not
compiled with 'atomics' or 'bulk-memory' features (<a
href="https://redirect.github.com/rust-lang/cc-rs/pull/1221">#1221</a>)</li>
<li>Reduce the need for the host target triple (<a
href="https://redirect.github.com/rust-lang/cc-rs/pull/1224">#1224</a>)</li>
<li>Add auto cancellation for CI jobs (<a
href="https://redirect.github.com/rust-lang/cc-rs/pull/1222">#1222</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/rust-lang/cc-rs/blob/main/CHANGELOG.md">cc's
changelog</a>.</em></p>
<blockquote>
<h2><a
href="https://github.com/rust-lang/cc-rs/compare/cc-v1.1.30...cc-v1.1.31">1.1.31</a>
- 2024-10-19</h2>
<h3>Other</h3>
<ul>
<li>Add comment explaining why cc does not rebuild on env PATH change
(<a
href="https://redirect.github.com/rust-lang/cc-rs/pull/1247">#1247</a>)</li>
</ul>
<h2><a
href="https://github.com/rust-lang/cc-rs/compare/cc-v1.1.29...cc-v1.1.30">1.1.30</a>
- 2024-10-11</h2>
<h3>Other</h3>
<ul>
<li>Don't pass -fPIC by default on wasm (<a
href="https://redirect.github.com/rust-lang/cc-rs/pull/1245">#1245</a>)</li>
</ul>
<h2><a
href="https://github.com/rust-lang/cc-rs/compare/cc-v1.1.28...cc-v1.1.29">1.1.29</a>
- 2024-10-11</h2>
<h3>Other</h3>
<ul>
<li>Regenerate target info (<a
href="https://redirect.github.com/rust-lang/cc-rs/pull/1243">#1243</a>)</li>
</ul>
<h2><a
href="https://github.com/rust-lang/cc-rs/compare/cc-v1.1.27...cc-v1.1.28">1.1.28</a>
- 2024-10-06</h2>
<h3>Other</h3>
<ul>
<li>Environment variables: For one accepting boolean, treat
&quot;0&quot;, &quot;false&quot; and empty env as false (<a
href="https://redirect.github.com/rust-lang/cc-rs/pull/1238">#1238</a>)</li>
</ul>
<h2><a
href="https://github.com/rust-lang/cc-rs/compare/cc-v1.1.26...cc-v1.1.27">1.1.27</a>
- 2024-10-06</h2>
<h3>Other</h3>
<ul>
<li>Revert &quot;Use debug version of MSVC runtime library on debug (<a
href="https://redirect.github.com/rust-lang/cc-rs/pull/1231">#1231</a>)&quot;
(<a
href="https://redirect.github.com/rust-lang/cc-rs/pull/1237">#1237</a>)</li>
<li>Disable <code>CC_ENABLE_DEBUG_OUTPUT</code> if it is set to
&quot;0&quot; (<a
href="https://redirect.github.com/rust-lang/cc-rs/pull/1234">#1234</a>)</li>
</ul>
<h2><a
href="https://github.com/rust-lang/cc-rs/compare/cc-v1.1.25...cc-v1.1.26">1.1.26</a>
- 2024-10-06</h2>
<h3>Other</h3>
<ul>
<li>Use debug version of MSVC runtime library on debug (<a
href="https://redirect.github.com/rust-lang/cc-rs/pull/1231">#1231</a>)</li>
</ul>
<h2><a
href="https://github.com/rust-lang/cc-rs/compare/cc-v1.1.24...cc-v1.1.25">1.1.25</a>
- 2024-10-05</h2>
<h3>Other</h3>
<ul>
<li>Remove incorrect &quot;lib&quot; prefixes in CXXSTDLIB doc comments
(<a
href="https://redirect.github.com/rust-lang/cc-rs/pull/1228">#1228</a>)</li>
</ul>
<h2><a
href="https://github.com/rust-lang/cc-rs/compare/cc-v1.1.23...cc-v1.1.24">1.1.24</a>
- 2024-10-01</h2>
<h3>Other</h3>
<ul>
<li>Fix wasm32-wasip1-threads: shared-memory disallowed due to not
compiled with 'atomics' or 'bulk-memory' features (<a
href="https://redirect.github.com/rust-lang/cc-rs/pull/1221">#1221</a>)</li>
<li>Reduce the need for the host target triple (<a
href="https://redirect.github.com/rust-lang/cc-rs/pull/1224">#1224</a>)</li>
<li>Add auto cancellation for CI jobs (<a
href="https://redirect.github.com/rust-lang/cc-rs/pull/1222">#1222</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="c07ab0ea4e"><code>c07ab0e</code></a>
chore: release v1.1.31 (<a
href="https://redirect.github.com/rust-lang/cc-rs/issues/1248">#1248</a>)</li>
<li><a
href="e53eba374f"><code>e53eba3</code></a>
Add comment explaining why cc does not rebuild on env PATH change (<a
href="https://redirect.github.com/rust-lang/cc-rs/issues/1247">#1247</a>)</li>
<li><a
href="9aab24207c"><code>9aab242</code></a>
chore: release (<a
href="https://redirect.github.com/rust-lang/cc-rs/issues/1246">#1246</a>)</li>
<li><a
href="d0048ab136"><code>d0048ab</code></a>
Don't pass -fPIC by default on wasm (<a
href="https://redirect.github.com/rust-lang/cc-rs/issues/1245">#1245</a>)</li>
<li><a
href="53a0b97ef8"><code>53a0b97</code></a>
chore: release (<a
href="https://redirect.github.com/rust-lang/cc-rs/issues/1244">#1244</a>)</li>
<li><a
href="7ad4677a4e"><code>7ad4677</code></a>
Regenerate target info (<a
href="https://redirect.github.com/rust-lang/cc-rs/issues/1243">#1243</a>)</li>
<li><a
href="218365e583"><code>218365e</code></a>
chore: release (<a
href="https://redirect.github.com/rust-lang/cc-rs/issues/1239">#1239</a>)</li>
<li><a
href="1a6a7103d9"><code>1a6a710</code></a>
Environment variables: For one accepting boolean, treat &quot;0&quot;,
&quot;false&quot; and empt...</li>
<li><a
href="3bbb3849ae"><code>3bbb384</code></a>
chore: release (<a
href="https://redirect.github.com/rust-lang/cc-rs/issues/1235">#1235</a>)</li>
<li><a
href="2b94f52d47"><code>2b94f52</code></a>
Revert &quot;Use debug version of MSVC runtime library on debug (<a
href="https://redirect.github.com/rust-lang/cc-rs/issues/1231">#1231</a>)&quot;
(<a
href="https://redirect.github.com/rust-lang/cc-rs/issues/1237">#1237</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/rust-lang/cc-rs/compare/cc-v1.1.23...cc-v1.1.31">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=cc&package-manager=cargo&previous-version=1.1.23&new-version=1.1.31)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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>
2024-11-04 10:03:21 +00:00
.github build(deps): bump crate-ci/typos from 1.24.6 to 1.26.8 (#2451) 2024-11-01 13:54:06 +00:00
mdbook-course cargo: bump the patch group with 11 updates (#2456) 2024-11-01 08:29:38 +01:00
mdbook-exerciser cargo: bump the patch group with 11 updates (#2456) 2024-11-01 08:29:38 +01:00
mdbook-slide-evaluator cargo: bump the patch group with 11 updates (#2456) 2024-11-01 08:29:38 +01:00
po vi: translate Default trait (#2447) 2024-10-27 13:47:59 -04:00
src cargo: bump cc from 1.1.23 to 1.1.31 in /src/bare-metal/aps/examples in the patch group (#2455) 2024-11-04 10:03:21 +00:00
theme fa: Adds Farsi to the language selector (#2436) 2024-10-15 22:17:55 -07:00
third_party Test that correct value is returned for height change (#2164) 2024-07-29 10:16:51 -04:00
.gitignore Add mdbook-slide-evaluator (#2258) 2024-08-21 07:18:07 +00:00
book.toml error-handling: split thiserror into its own slide (#2332) 2024-09-20 20:56:22 +00:00
Cargo.lock cargo: bump the patch group with 11 updates (#2456) 2024-11-01 08:29:38 +01:00
Cargo.toml Add mdbook-slide-evaluator (#2258) 2024-08-21 07:18:07 +00:00
CONTRIBUTING.md Update Windows Gettext installation instructions (#1447) 2023-11-06 13:05:13 -08:00
dprint.json Temporarily remove po formatting (#2381) 2024-09-29 08:08:41 +02:00
LICENSE Rename LICENSE.txt to LICENSE (#293) 2023-01-29 14:20:55 +01:00
README.md Fix a broken link and check internal links (#2195) 2024-07-22 11:37:19 +00:00
rustfmt.toml Format all Markdown files with dprint (#1157) 2023-12-31 00:15:07 +01:00
STYLE.md Add a dev theme to help with slide aspect ratio (#1842) 2024-03-05 10:33:42 +00:00
TRANSLATIONS.md Include xgettext as optional output (#2244) 2024-07-23 10:51:13 +02:00

Comprehensive Rust 🦀

Build workflow GitHub contributors GitHub stars

This repository has the source code for Comprehensive Rust 🦀, a multi-day Rust course developed by the Android team. The course covers all aspects of Rust, from basic syntax to generics and error handling. It also includes deep dives on Android, Chromium, bare-metal, and concurrency.

Read the course at https://google.github.io/comprehensive-rust/.

Course Format and Target Audience

The course is used internally at Google when teaching Rust to experienced software engineers. They typically have a background in C++ or Java.

The course is taught in a classroom setting and we hope it will be useful for others who want to teach Rust to their team. The course will be less useful for self-study since you miss out on the discussions happening in the classroom. You don't see the questions and answers and you don't see the compiler errors we trigger when going through the code samples. We hope to improve on this via speaker notes and by publishing videos.

Press

Articles and blog posts from around the web which cover Comprehensive Rust:

Building

The course is built using a few tools:

In addition, mdbook-linkcheck checks the internal links.

First install Rust by following the instructions on https://rustup.rs/. Then clone this repository:

git clone https://github.com/google/comprehensive-rust/
cd comprehensive-rust

Then install these tools with:

cargo install mdbook
cargo install --locked mdbook-svgbob
cargo install --locked mdbook-i18n-helpers
cargo install --locked i18n-report
cargo install --locked mdbook-linkcheck
cargo install --locked --path mdbook-exerciser
cargo install --locked --path mdbook-course

Run

mdbook test

to test all included Rust snippets. Run

mdbook serve

to start a web server with the course. You'll find the content on http://localhost:3000. You can use mdbook build to create a static version of the course in the book/ directory. Note that you have to separately build and zip exercises and add them to book/html. To build any of the translated versions of the course, run MDBOOK_BOOK__LANGUAGE=xx mdbook build -d book/xx where xx is the ISO 639 language code (e.g. da for the Danish translation). TRANSLATIONS.md contains further instructions.

Note

On Windows, you need to enable symlinks (git config --global core.symlinks true) and Developer Mode.

Contact

For questions or comments, please contact Martin Geisler or start a discussion on GitHub. We would love to hear from you.