Create book from markdown files. Like Gitbook but implemented in Rust
This report summarizes scanner evidence for rust-lang/mdBook, a Rust project with 22,254 GitHub stars. SynthScan examined 33,140 lines of code across 650 source files, recording 51 pattern matches distributed across 2 syntactic categories. The legacy adjusted pattern signal is 1.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? 44 finding(s).
Are imports declared and package/API names verified? 7 finding(s).
Are wrappers, guards, and repeated structures necessary? 0 finding(s).
Which changes need focused human review? 51 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 51 distinct pattern matches across 2 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 | crates/mdbook-core/src/config.rs | 1 | //! Mdbook's configuration system. | COMMENT |
| LOW | crates/mdbook-core/src/config.rs | 21 | //! authors = ["Michael-F-Bryan"] | COMMENT |
| LOW | crates/mdbook-core/src/config.rs | 61 | #[serde(default, deny_unknown_fields)] | COMMENT |
| LOW | crates/mdbook-core/src/config.rs | 121 | /// created by removing the `MDBOOK_` prefix and turning the resulting | COMMENT |
| LOW | crates/mdbook-core/src/config.rs | 261 | /// Set a config key, clobbering any existing values along the way. | COMMENT |
| LOW | crates/mdbook-core/src/config.rs | 341 | #[serde(default, rename_all = "kebab-case", deny_unknown_fields)] | COMMENT |
| LOW | crates/mdbook-core/src/config.rs | 461 | } | COMMENT |
| LOW | crates/mdbook-core/src/config.rs | 481 | E2021, | COMMENT |
| LOW | crates/mdbook-core/src/config.rs | 501 | pub preferred_dark_theme: Option<BuiltinTheme>, | COMMENT |
| LOW | crates/mdbook-core/src/config.rs | 521 | pub code: Code, | COMMENT |
| LOW | crates/mdbook-core/src/config.rs | 541 | /// as required by GitHub Pages (see [*Managing a custom domain for your | COMMENT |
| LOW | crates/mdbook-core/src/config.rs | 641 | } | COMMENT |
| LOW | crates/mdbook-core/src/config.rs | 701 | pub struct Search { | COMMENT |
| LOW | crates/mdbook-core/src/config.rs | 781 | COMMENT | |
| LOW | crates/mdbook-core/src/book.rs | 1 | //! A tree structure representing a book. | COMMENT |
| LOW | crates/mdbook-core/src/book.rs | 141 | pub struct Chapter { | COMMENT |
| LOW | crates/mdbook-core/src/utils/fs.rs | 41 | /// | COMMENT |
| LOW | crates/mdbook-core/src/utils/fs.rs | 181 | COMMENT | |
| LOW | crates/mdbook-renderer/src/lib.rs | 21 | COMMENT | |
| LOW | crates/mdbook-renderer/src/lib.rs | 41 | /// Which version of `mdbook` did this come from (as written in `mdbook`'s | COMMENT |
| LOW | crates/mdbook-html/src/html/tree.rs | 161 | pub(crate) struct MarkdownTreeBuilder<'opts, 'event, EventIter> { | COMMENT |
| LOW | crates/mdbook-html/src/html/tree.rs | 181 | table_alignments: Vec<Alignment>, | COMMENT |
| LOW | crates/mdbook-html/src/html/mod.rs | 1 | //! HTML rendering support. | COMMENT |
| LOW | crates/mdbook-markdown/src/lib.rs | 1 | //! Markdown processing used in mdBook. | COMMENT |
| LOW | crates/mdbook-driver/src/lib.rs | 1 | //! High-level library for running mdBook. | COMMENT |
| LOW | crates/mdbook-driver/src/lib.rs | 21 | //! - [`mdbook_html`]: The HTML renderer. | COMMENT |
| LOW | crates/mdbook-driver/src/lib.rs | 41 | //! let root_dir = "/path/to/book/root"; | COMMENT |
| LOW | crates/mdbook-driver/src/mdbook.rs | 121 | /// BookItem::Chapter(ref chapter) => {}, | COMMENT |
| LOW | crates/mdbook-driver/src/mdbook.rs | 141 | /// and its accompanying directory structure. | COMMENT |
| LOW | crates/mdbook-driver/src/mdbook.rs | 341 | if !chapter_found { | COMMENT |
| LOW | crates/mdbook-driver/src/mdbook.rs | 361 | /// Otherwise if there are multiple: | COMMENT |
| LOW | crates/mdbook-driver/src/builtin_preprocessors/links.rs | 21 | /// | COMMENT |
| LOW | crates/mdbook-preprocessor/src/lib.rs | 21 | pub use mdbook_core::errors; | COMMENT |
| LOW | crates/mdbook-summary/src/lib.rs | 21 | /// | COMMENT |
| LOW | crates/mdbook-summary/src/lib.rs | 41 | /// will be numbered and can be nested, resulting in a nice hierarchy (chapters, | COMMENT |
| LOW | crates/mdbook-summary/src/lib.rs | 141 | fn from(other: Link) -> SummaryItem { | COMMENT |
| LOW | crates/mdbook-summary/src/lib.rs | 161 | /// part ::= title dotted_item+ | COMMENT |
| LOW | …/includes/all_includes/src/nested-test-with-anchors.rs | 1 | // This is a test of includes with anchors. | COMMENT |
| LOW | tests/testsuite/rendering/hidelines/src/hide-lines.md | 21 | # | COMMENT |
| LOW | …s/testsuite/rendering/header_links/src/header_links.md | 1 | # Header Links | COMMENT |
| LOW | tests/gui/books/sidebar-scroll/src/chapter_35.md | 1 | # Chapter 35 | COMMENT |
| LOW | tests/gui/books/sidebar-scroll/src/chapter_35.md | 21 | ## Heading S | COMMENT |
| LOW | tests/gui/books/sidebar-scroll/src/chapter_10.md | 1 | # Chapter 10 | COMMENT |
| LOW | tests/gui/books/sidebar-scroll/src/chapter_10.md | 21 | ## Heading S | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | guide/src/format/configuration/general.md | 10 | authors = ["John Doe"] | CODE |
| LOW | guide/src/format/configuration/general.md | 59 | authors = ["John Doe", "Jane Doe"] | CODE |
| LOW | guide/src/format/configuration/general.md | 59 | authors = ["John Doe", "Jane Doe"] | CODE |
| LOW | guide/src/format/configuration/renderers.md | 93 | authors = ["John Doe", "Jane Doe"] | CODE |
| LOW | guide/src/format/configuration/renderers.md | 93 | authors = ["John Doe", "Jane Doe"] | CODE |
| LOW | …e/includes/all_includes/expected/multiline-issues.html | 20 | <p>Lorum ipsum dolor sit amet.</p> | CODE |
| LOW | …estsuite/includes/all_includes/src/multiline/issues.md | 15 | Lorum ipsum dolor sit amet. | CODE |