This is the Rust course used by the Android team at Google. It provides you the material to quickly teach Rust.
This report summarizes scanner evidence for google/comprehensive-rust, a Rust project with 33,481 GitHub stars. SynthScan examined 53,121 lines of code across 777 source files, recording 117 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 2.5 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 114 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 5 finding(s).
Which changes need focused human review? 117 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 117 distinct pattern matches across 8 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | mdbook-exerciser/src/lib.rs | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | mdbook-exerciser/src/main.rs | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | tests/wdio.conf.ts | 1 | import { env } from "node:process"; | COMMENT |
| LOW | tests/wdio.conf.ts | 21 | // process simply enclose them in an array within the specs array. | COMMENT |
| LOW | tests/wdio.conf.ts | 41 | // say you have 3 different capabilities (Chrome, Firefox, and Safari) and you have | COMMENT |
| LOW | tests/wdio.conf.ts | 81 | // | COMMENT |
| LOW | tests/wdio.conf.ts | 101 | bail: 0, | COMMENT |
| LOW | tests/wdio.conf.ts | 141 | COMMENT | |
| LOW | tests/src/slides/slides.list.ts | 1 | // to enable local testing for slide size checks please (re)generate this file by executing: | COMMENT |
| LOW | third_party/cxx/book/snippets.rs | 141 | COMMENT | |
| LOW | theme/speaker-notes.js | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | .github/workflows/check-msgid-changes.py | 1 | # Copyright 2023 Google LLC | COMMENT |
| LOW | .github/workflows/check-redirects.py | 1 | # Copyright 2026 Google LLC | COMMENT |
| LOW | .github/workflows/build.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | xtask/src/main.rs | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | mdbook-course/src/replacements.rs | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | mdbook-course/src/frontmatter.rs | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | mdbook-course/src/lib.rs | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | mdbook-course/src/course.rs | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | mdbook-course/src/course.rs | 21 | //! Session -- a block of instructional time (typically morning or afternoon) | COMMENT |
| LOW | mdbook-course/src/markdown.rs | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | mdbook-course/src/timing_info.rs | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | mdbook-course/src/bin/course-schedule.rs | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | mdbook-course/src/bin/course-content.rs | 1 | // Copyright 2024 Google LLC | COMMENT |
| LOW | mdbook-course/src/bin/mdbook-course.rs | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | src/generics/exercise.rs | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | src/methods-and-traits/exercise.rs | 1 | // Copyright 2024 Google LLC | COMMENT |
| LOW | src/error-handling/exercise.rs | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | src/borrowing/exercise.md | 21 | ```rust,editable,compile_fail | COMMENT |
| LOW | src/borrowing/exercise.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | src/types-and-values/exercise.rs | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | src/references/exercise.rs | 1 | // Copyright 2022 Google LLC | COMMENT |
| LOW | src/tuples-and-arrays/exercise.rs | 1 | // Copyright 2022 Google LLC | COMMENT |
| LOW | …/bare-metal/useful-crates/zerocopy-example/src/main.rs | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | …bare-metal/useful-crates/allocator-example/src/main.rs | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | src/bare-metal/aps/examples/src/logger.rs | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | src/bare-metal/aps/examples/src/main_improved.rs | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | src/bare-metal/aps/examples/src/main_logger.rs | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | src/bare-metal/aps/examples/src/main_minimal.rs | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | src/bare-metal/aps/examples/src/main_safemmio.rs | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | src/bare-metal/aps/examples/src/main_psci.rs | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | src/bare-metal/aps/examples/src/exceptions_rt.rs | 1 | // Copyright 2026 Google LLC | COMMENT |
| LOW | src/bare-metal/aps/examples/src/pl011_minimal.rs | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | src/bare-metal/aps/examples/src/pl011_minimal.rs | 21 | /// Minimal driver for a PL011 UART. | COMMENT |
| LOW | src/bare-metal/aps/examples/src/exceptions.rs | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | src/bare-metal/aps/examples/src/asm.rs | 1 | // Copyright 2025 Google LLC | COMMENT |
| LOW | src/bare-metal/aps/examples/src/pl011.rs | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | src/bare-metal/aps/examples/src/main_rt.rs | 1 | // Copyright 2025 Google LLC | COMMENT |
| LOW | src/bare-metal/aps/examples/src/pl011_struct.rs | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | src/bare-metal/microcontrollers/examples/src/bin/pac.rs | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | src/bare-metal/microcontrollers/examples/src/bin/hal.rs | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | …e-metal/microcontrollers/examples/src/bin/typestate.rs | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | …c/bare-metal/microcontrollers/examples/src/bin/mmio.rs | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | …tal/microcontrollers/examples/src/bin/board_support.rs | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | …are-metal/microcontrollers/examples/src/bin/minimal.rs | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | …al/microcontrollers/examples/src/bin/interrupts/mod.rs | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | src/bare-metal/alloc-example/src/main.rs | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | src/user-defined-types/exercise.rs | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | src/std-traits/exercise.rs | 1 | // Copyright 2023 Google LLC | COMMENT |
| LOW | …i-design/meaningful-doc-comments/name-drop-signpost.md | 21 | /// [leader]: https://www.loc.gov/marc/bibliographic/bdleader.html | COMMENT |
| 44 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | src/android/build_all.sh | 33 | # mkdir comprehensive-rust | COMMENT |
| MEDIUM⚡ | src/android/build_all.sh | 34 | # sudo mount -o bind ../path/to/comprehensive-rust/src comprehensive-rust | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …e-deep-dive/initialization/how-to-initialize-memory.md | 25 | // Step 1: Create MaybeUninit | COMMENT |
| LOW⚡ | …e-deep-dive/initialization/how-to-initialize-memory.md | 28 | // Step 2: Write a valid value to the memory | COMMENT |
| LOW⚡ | …e-deep-dive/initialization/how-to-initialize-memory.md | 31 | // Step 3: Inform the type system that the memory location is valid | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .github/workflows/check-redirects.py | 74 | print(f"Error: {repo_root} is not a directory") | CODE |
| MEDIUM | .github/workflows/check-redirects.py | 86 | print(f"Error running git diff: {e}") | CODE |
| MEDIUM | .github/workflows/check-redirects.py | 97 | print(f"Error: {book_toml_path} not found in {repo_root}") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | src/android/build_all.sh | 30 | # you can use a bind mount: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .github/workflows/check-redirects.py | 51 | def md_to_html_redirect_source(md_file): | CODE |
| LOW | .github/workflows/check-redirects.py | 55 | def html_redirect_target_to_md(redirect_source, redirect_target): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/generics/exercise.md | 21 | // TODO: implement the `min` function used in the tests. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/android/build_all.sh | 17 | # How to use | COMMENT |