1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2024-12-15 14:27:50 +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] a076650faf
build(deps): bump cxx from 1.0.111 to 1.0.114 (#1654)
Bumps [cxx](https://github.com/dtolnay/cxx) from 1.0.111 to 1.0.114.
<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.114</h2>
<ul>
<li>Documentation improvements (thanks <a
href="https://github.com/adamchalmers"><code>@​adamchalmers</code></a>)</li>
</ul>
<h2>1.0.113</h2>
<ul>
<li>Update proc-macro2 to fix caching issue when using a rustc-wrapper
such as sccache</li>
</ul>
<h2>1.0.112</h2>
<ul>
<li>Documentation improvements</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="e6184c2a62"><code>e6184c2</code></a>
Release 1.0.114</li>
<li><a
href="6d4a51b10c"><code>6d4a51b</code></a>
Wrap PR 1298 to 80 columns</li>
<li><a
href="b2477123a1"><code>b247712</code></a>
Merge pull request <a
href="https://redirect.github.com/dtolnay/cxx/issues/1298">#1298</a>
from adamchalmers/achalmers/document-how-to-implemen...</li>
<li><a
href="f0fa65a7de"><code>f0fa65a</code></a>
Merge pull request <a
href="https://redirect.github.com/dtolnay/cxx/issues/1294">#1294</a>
from dtolnay/bzlmod</li>
<li><a
href="752d0439bf"><code>752d043</code></a>
Switch to bzlmod</li>
<li><a
href="17f46ec7a5"><code>17f46ec</code></a>
Replace http_archive sha256 argument with integrity argument</li>
<li><a
href="08ce722e29"><code>08ce722</code></a>
Document how to implement VectorElement</li>
<li><a
href="08711cdc36"><code>08711cd</code></a>
Bazel rules_rust 0.36.2</li>
<li><a
href="2dc00a4e2d"><code>2dc00a4</code></a>
Release 1.0.113</li>
<li><a
href="71dcb59e6f"><code>71dcb59</code></a>
Lockfile update</li>
<li>Additional commits viewable in <a
href="https://github.com/dtolnay/cxx/compare/1.0.111...1.0.114">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=cxx&package-manager=cargo&previous-version=1.0.111&new-version=1.0.114)](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 this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-05 13:25:58 +00:00
.github Test translations using same source as for publish (#1492) 2024-01-04 17:04:44 +01:00
mdbook-course build(deps): bump anyhow from 1.0.76 to 1.0.79 (#1653) 2024-01-05 13:24:05 +00:00
mdbook-exerciser build(deps): bump anyhow from 1.0.76 to 1.0.79 (#1653) 2024-01-05 13:24:05 +00:00
po uk: Instructor notes (Rust v2) (#1652) 2024-01-05 10:14:43 +00:00
src build(deps): bump thiserror from 1.0.53 to 1.0.56 (#1655) 2024-01-05 13:25:21 +00:00
theme Test translations using same source as for publish (#1492) 2024-01-04 17:04:44 +01:00
third_party Test translations using same source as for publish (#1492) 2024-01-04 17:04:44 +01:00
.gitignore Comprehensive Rust v2 (#1073) 2023-11-29 16:39:24 +01:00
aspect-ratio-helper.py Format Python files with YAPF (#1360) 2023-10-18 13:56:05 -04:00
book.toml fix mdbook redirection table (#1635) 2024-01-04 14:05:49 +00:00
Cargo.lock build(deps): bump cxx from 1.0.111 to 1.0.114 (#1654) 2024-01-05 13:25:58 +00:00
Cargo.toml Comprehensive Rust v2 (#1073) 2023-11-29 16:39:24 +01:00
CONTRIBUTING.md Update Windows Gettext installation instructions (#1447) 2023-11-06 13:05:13 -08:00
dprint.json Test translations using same source as for publish (#1492) 2024-01-04 17:04:44 +01:00
LICENSE Rename LICENSE.txt to LICENSE (#293) 2023-01-29 14:20:55 +01:00
README.md Add Chromium section (#1479) 2023-11-27 18:21:19 +00:00
rustfmt.toml Format all Markdown files with dprint (#1157) 2023-12-31 00:15:07 +01:00
STYLE.md Add guidance that variable names shouldn't be translated to STYLE.md (#1480) 2023-11-15 10:25:46 -08:00
TRANSLATIONS.md build(deps): bump actions/labeler from 4 to 5 (#1619) 2024-01-01 21:57:24 -05: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:

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 mdbook-svgbob
cargo install mdbook-i18n-helpers
cargo install --path mdbook-exerciser
cargo install --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.