The Rust package registry
This report summarizes scanner evidence for rust-lang/crates.io, a Rust project with 3,730 GitHub stars. SynthScan examined 153,362 lines of code across 1284 source files, recording 214 pattern matches distributed across 6 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? 162 finding(s).
Are imports declared and package/API names verified? 44 finding(s).
Are wrappers, guards, and repeated structures necessary? 9 finding(s).
Which changes need focused human review? 214 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 214 distinct pattern matches across 6 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 | deny.toml | 1 | # This template contains all of the possible sections and their default values | COMMENT |
| LOW | deny.toml | 21 | targets = [ | COMMENT |
| LOW | deny.toml | 41 | # be toggled off if true, if you want to conditionally enable `--all-features` it | COMMENT |
| LOW | deny.toml | 61 | # https://embarkstudios.github.io/cargo-deny/checks/advisories/cfg.html | COMMENT |
| LOW | deny.toml | 81 | "RUSTSEC-2026-0194", | COMMENT |
| LOW | deny.toml | 101 | #severity-threshold = | COMMENT |
| LOW | deny.toml | 141 | # list | COMMENT |
| LOW | deny.toml | 161 | # when running the license check, otherwise the clarification will be ignored | COMMENT |
| LOW | deny.toml | 181 | # One or more private registries that you might publish crates to, if a crate | COMMENT |
| LOW | deny.toml | 201 | highlight = "all" | COMMENT |
| LOW | deny.toml | 221 | # is a direct dependency of the otherwise banned crate | COMMENT |
| LOW | deny.toml | 241 | # "tokio-rustls", | COMMENT |
| LOW | deny.toml | 261 | # More documentation about the 'sources' section can be found here: | COMMENT |
| LOW | deny.toml | 281 | # 1 or more bitbucket.org organizations to allow git sources for | COMMENT |
| LOW | diesel-guard.toml | 1 | # diesel-guard configuration file | COMMENT |
| LOW | diesel-guard.toml | 21 | # check_down = false | COMMENT |
| LOW | playwright.config.ts | 41 | projects: [ | COMMENT |
| LOW | playwright.config.ts | 61 | // }, | COMMENT |
| LOW | crates/crates_io_env_vars/src/lib.rs | 1 | #![doc = include_str!("../README.md")] | COMMENT |
| LOW | crates/crates_io_env_vars/src/lib.rs | 21 | Err(error) => Err(error.into()), | COMMENT |
| LOW | crates/crates_io_cargo_toml/src/lib.rs | 441 | #[serde(rename_all = "kebab-case")] | COMMENT |
| LOW | crates/crates_io_cargo_toml/src/lib.rs | 461 | /// `cargo test`. | COMMENT |
| LOW | crates/crates_io_cargo_toml/src/lib.rs | 481 | pub proc_macro: bool, | COMMENT |
| LOW | crates/crates_io_cargo_toml/src/lib.rs | 701 | #[serde(rename_all = "kebab-case")] | COMMENT |
| LOW | crates/crates_io_cargo_toml/src/lib.rs | 781 | } | COMMENT |
| LOW | crates/crates_io_cargo_toml/src/lib.rs | 801 | pub links: Option<String>, | COMMENT |
| LOW | crates/crates_io_cargo_toml/src/lib.rs | 821 | pub license: Option<MaybeInherited<String>>, | COMMENT |
| LOW | crates/crates_io_cargo_toml/src/target_metadata.rs | 41 | /// The package build script. | COMMENT |
| LOW | crates/crates_io_cargo_toml/src/target_metadata.rs | 161 | /// A target path is absolute or escapes the package root. | COMMENT |
| LOW | crates/crates_io_heroku/src/lib.rs | 41 | /// | COMMENT |
| LOW | crates/crates_io_heroku/src/lib.rs | 61 | /// | COMMENT |
| LOW | crates/crates_io_heroku/src/lib.rs | 81 | } | COMMENT |
| LOW | crates/crates_io_heroku/src/lib.rs | 101 | /// use crates_io_heroku::slug_commit; | COMMENT |
| LOW | crates/crates_io_heroku/src/lib.rs | 121 | /// the current standard while `HEROKU_SLUG_COMMIT` is deprecated. | COMMENT |
| LOW | crates/crates_io_cdn_logs/src/paths.rs | 1 | use semver::Version; | COMMENT |
| LOW | crates/crates_io_cdn_logs/src/fastly/json.rs | 1 | //! Imported from <https://github.com/rust-lang/simpleinfra/blob/4fb365809295de075d28d8b2d51f6f419537be7d/terragrunt/mod | COMMENT |
| LOW | crates/crates_io_cdn_logs/src/fastly/json.rs | 21 | /// - The `date_time`, `method`, `url`, and `version` fields are using `Cow` to | COMMENT |
| LOW | crates/crates_io_index/src/commit_builder.rs | 1 | use crate::repo::Repository; | COMMENT |
| LOW | crates/crates_io_index/src/credentials.rs | 21 | _ => None, | COMMENT |
| LOW | crates/crates_io_index/src/data.rs | 21 | /// with a `Cargo.lock` file. | COMMENT |
| LOW | crates/crates_io_index/src/data.rs | 41 | /// | COMMENT |
| LOW | crates/crates_io_index/src/repo.rs | 81 | /// See [`Self::open_shallow`] for a variant that only fetches the tip | COMMENT |
| LOW | crates/crates_io_index/src/repo.rs | 101 | /// | COMMENT |
| LOW | crates/crates_io_fastly/src/lib.rs | 41 | .unwrap(); | COMMENT |
| LOW | crates/crates_io_database_dump/src/dump-db.toml | 1 | # This file configures what to include in public database dumps. For each | COMMENT |
| LOW | crates/crates_io_database_dump/src/configuration.rs | 1 | use serde::Deserialize; | COMMENT |
| LOW | crates/crates_io_test_db/src/lib.rs | 21 | const CONNECTION_TIMEOUT: Duration = Duration::from_secs(5); | COMMENT |
| LOW | crates/crates_io_test_db/src/lib.rs | 181 | /// This sweeps any leftover per-test schemas from a prior crashed run, | COMMENT |
| LOW | crates/crates_io_version/src/lib.rs | 1 | #![doc = include_str!("../README.md")] | COMMENT |
| LOW | crates/crates_io_trustpub/src/lib.rs | 1 | #![doc = include_str!("../README.md")] | COMMENT |
| LOW | crates/crates_io_trustpub/src/unverified.rs | 1 | use jsonwebtoken::TokenData; | COMMENT |
| LOW | crates/crates_io_trustpub/src/access_token.rs | 1 | use rand::distr::{Alphanumeric, SampleString}; | COMMENT |
| LOW | crates/crates_io_trustpub/src/gitlab/validation.rs | 1 | //! Validation functions for GitLab Trusted Publishing configuration fields. | COMMENT |
| LOW | crates/crates_io_trustpub/src/gitlab/workflows.rs | 1 | /// Extracts the workflow path from a GitLab `ci_config_ref_uri` claim. | COMMENT |
| LOW | crates/crates_io_trustpub/src/keystore/load_jwks.rs | 1 | use jsonwebtoken::jwk::JwkSet; | COMMENT |
| LOW | crates/crates_io_database/tests/semver_ord_v2.rs | 41 | COMMENT | |
| LOW | crates/crates_io_database/src/semver.rs | 1 | use diesel::Queryable; | COMMENT |
| LOW | crates/crates_io_database/src/schema.rs | 1 | // @generated automatically by Diesel CLI. | COMMENT |
| LOW | crates/crates_io_database/src/schema.rs | 21 | /// (Automatically generated by Diesel.) | COMMENT |
| LOW | crates/crates_io_database/src/schema.rs | 41 | /// The `id` column of the `api_tokens` table. | COMMENT |
| 81 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/crates_io_github/src/lib.rs | 570 | "name": "John Doe" | CODE |
| LOW | crates/crates_io_worker/README.md | 114 | to: "user@example.com".to_string(), | CODE |
| LOW | svelte/src/lib/components/UserPageHeader.stories.svelte | 21 | name: 'Jane Doe', | CODE |
| LOW | svelte/src/lib/components/UserAvatar.stories.svelte | 23 | name: 'Jane Doe', | CODE |
| LOW | svelte/src/lib/components/UserAvatar.stories.svelte | 44 | name: 'Jane Doe', | CODE |
| LOW | svelte/src/lib/components/OwnersList.stories.svelte | 18 | name: 'Jane Doe', | CODE |
| LOW | svelte/src/lib/components/CrateHeader.stories.svelte | 25 | name: 'John Doe', | CODE |
| LOW | svelte/src/lib/components/CrateHeader.stories.svelte | 41 | name: 'John Doe', | CODE |
| LOW | svelte/src/lib/components/Header.stories.svelte | 25 | name: 'John Doe', | CODE |
| LOW | svelte/src/lib/components/EmailInput.stories.svelte | 21 | name: 'John Doe', | CODE |
| LOW | svelte/src/lib/components/PrivilegedAction.svelte | 36 | interface Props extends Omit<HTMLAttributes<HTMLDivElement>, 'placeholder'> { | CODE |
| LOW | svelte/src/lib/components/PrivilegedAction.svelte | 60 | <div {...others} class="placeholder"> | CODE |
| LOW | svelte/src/lib/components/Placeholder.svelte | 15 | class={['placeholder', className]} | CODE |
| LOW | svelte/src/lib/components/EmailInput.svelte.test.ts | 18 | name: 'John Doe', | CODE |
| LOW | packages/crates-io-msw/models/user.test.ts | 32 | let user = await db.user.create({ name: 'John Doe' }); | CODE |
| LOW | packages/crates-io-msw/models/user.test.ts | 50 | "name": "John Doe", | CODE |
| LOW | packages/crates-io-msw/handlers/cdn.test.ts | 35 | let readme = 'lorem ipsum <i>est</i> dolor!'; | CODE |
| LOW | …ages/crates-io-msw/handlers/crates/list-owners.test.ts | 33 | name: 'John Doe', | CODE |
| LOW | …ages/crates-io-msw/handlers/crates/list-owners.test.ts | 57 | "name": "John Doe", | CODE |
| LOW | …ages/crates-io-msw/handlers/crates/list-owners.test.ts | 91 | let user = await db.user.create({ name: 'John Doe' }); | CODE |
| LOW | …ages/crates-io-msw/handlers/crates/list-owners.test.ts | 112 | "name": "John Doe", | CODE |
| LOW | …ages/crates-io-msw/handlers/crates/user-owners.test.ts | 32 | let user = await db.user.create({ name: 'John Doe' }); | CODE |
| LOW | …ages/crates-io-msw/handlers/crates/user-owners.test.ts | 50 | "name": "John Doe", | CODE |
| LOW | packages/crates-io-msw/handlers/users/stats.test.ts | 20 | let user = await db.user.create({ name: 'John Doe' }); | CODE |
| LOW | packages/crates-io-msw/handlers/users/stats.test.ts | 32 | let user = await db.user.create({ name: 'John Doe' }); | CODE |
| LOW | packages/crates-io-msw/handlers/users/stats.test.ts | 49 | let user1 = await db.user.create({ name: 'John Doe' }); | CODE |
| LOW | packages/crates-io-msw/handlers/users/stats.test.ts | 50 | let user2 = await db.user.create({ name: 'Jane Doe' }); | CODE |
| LOW | e2e/acceptance/logout.spec.ts | 5 | let user = await msw.db.user.create({ name: 'John Doe' }); | CODE |
| LOW | e2e/acceptance/logout.spec.ts | 12 | await expect(menu.locator('[data-test-toggle]')).toHaveText('John Doe'); | CODE |
| LOW | e2e/acceptance/login.spec.ts | 10 | let user = await msw.db.user.create({ name: 'John Doe' }); | CODE |
| LOW | e2e/acceptance/login.spec.ts | 30 | await expect(page.locator('[data-test-user-menu] [data-test-toggle]')).toHaveText('John Doe'); | CODE |
| LOW | e2e/acceptance/login.spec.ts | 50 | let user = await msw.db.user.create({ name: 'John Doe' }); | CODE |
| LOW | e2e/acceptance/login.spec.ts | 76 | await expect(page.locator('[data-test-user-menu] [data-test-toggle]')).toHaveText('John Doe'); | CODE |
| LOW | e2e/acceptance/dashboard.spec.ts | 14 | name: 'John Doe', | CODE |
| LOW | e2e/acceptance/api-token.spec.ts | 8 | name: 'John Doe', | CODE |
| LOW | e2e/acceptance/sudo.spec.ts | 8 | name: 'John Doe', | CODE |
| LOW | e2e/acceptance/dashboard.spec.ts-snapshots/aria.yml | 10 | - button "John Doe" | CODE |
| LOW | e2e/acceptance/api-token.spec.ts-snapshots/aria.yml | 10 | - button "John Doe" | CODE |
| LOW | e2e/routes/settings/tokens/index.spec.ts | 7 | name: 'John Doe', | CODE |
| LOW | e2e/routes/settings/tokens/index.spec.ts | 35 | name: 'John Doe', | CODE |
| LOW | e2e/routes/settings/tokens/new.spec.ts | 8 | name: 'John Doe', | CODE |
| LOW | src/email.rs | 439 | assert_eq!(mask_email("user@example.com"), "u***@e***.com"); | CODE |
| LOW | src/worker/jobs/typosquat.rs | 139 | let cache = Cache::new(vec!["admin@example.com".to_string()], &mut async_conn).await?; | CODE |
| LOW | src/worker/jobs/typosquat.rs | 170 | assert_eq!(&sent.0.to(), &["admin@example.com".parse::<Address>()?]); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | src/tests/krate/publish/trustpub_github.rs | 62 | // Step 1: Publish a new crate via API token | COMMENT |
| LOW⚡ | src/tests/krate/publish/trustpub_github.rs | 68 | // Step 2: Create a Trusted Publishing configuration | COMMENT |
| LOW | src/tests/krate/publish/trustpub_github.rs | 101 | // Step 3: Generate a new OIDC token and exchange it for a temporary access token | COMMENT |
| LOW | src/tests/krate/publish/trustpub_github.rs | 125 | // Step 4: Publish a new version of the crate using the temporary access token | COMMENT |
| LOW | src/tests/krate/publish/trustpub_github.rs | 148 | // Step 5: Revoke the temporary access token | COMMENT |
| LOW⚡ | src/tests/krate/publish/trustpub_gitlab.rs | 44 | // Step 1: Publish a new crate via API token | COMMENT |
| LOW⚡ | src/tests/krate/publish/trustpub_gitlab.rs | 50 | // Step 2: Create a Trusted Publishing configuration | COMMENT |
| LOW | src/tests/krate/publish/trustpub_gitlab.rs | 82 | // Step 3: Generate a new OIDC token and exchange it for a temporary access token | COMMENT |
| LOW | src/tests/krate/publish/trustpub_gitlab.rs | 106 | // Step 4: Publish a new version of the crate using the temporary access token | COMMENT |
| LOW | src/tests/krate/publish/trustpub_gitlab.rs | 129 | // Step 5: Revoke the temporary access token | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | src/tests/krate/publish/trustpub_github.rs | 62 | // Step 1: Publish a new crate via API token | COMMENT |
| LOW⚡ | src/tests/krate/publish/trustpub_github.rs | 68 | // Step 2: Create a Trusted Publishing configuration | COMMENT |
| LOW | src/tests/krate/publish/trustpub_github.rs | 101 | // Step 3: Generate a new OIDC token and exchange it for a temporary access token | COMMENT |
| LOW | src/tests/krate/publish/trustpub_github.rs | 125 | // Step 4: Publish a new version of the crate using the temporary access token | COMMENT |
| LOW | src/tests/krate/publish/trustpub_github.rs | 148 | // Step 5: Revoke the temporary access token | COMMENT |
| LOW⚡ | src/tests/krate/publish/trustpub_gitlab.rs | 44 | // Step 1: Publish a new crate via API token | COMMENT |
| LOW⚡ | src/tests/krate/publish/trustpub_gitlab.rs | 50 | // Step 2: Create a Trusted Publishing configuration | COMMENT |
| LOW | src/tests/krate/publish/trustpub_gitlab.rs | 82 | // Step 3: Generate a new OIDC token and exchange it for a temporary access token | COMMENT |
| LOW | src/tests/krate/publish/trustpub_gitlab.rs | 106 | // Step 4: Publish a new version of the crate using the temporary access token | COMMENT |
| LOW | src/tests/krate/publish/trustpub_gitlab.rs | 129 | // Step 5: Revoke the temporary access token | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | crates/crates_io_real_ip/update-data.py | 21 | except Exception as e: | CODE |
| MEDIUM⚡ | crates/crates_io_real_ip/update-data.py | 22 | print(f"Error downloading {name} IP ranges: {e}", file=sys.stderr) | CODE |
| LOW⚡ | crates/crates_io_real_ip/update-data.py | 30 | except Exception as e: | CODE |
| MEDIUM⚡ | crates/crates_io_real_ip/update-data.py | 31 | print(f"Error parsing IPv4 CIDR {cidr}: {e}", file=sys.stderr) | CODE |
| LOW⚡ | crates/crates_io_real_ip/update-data.py | 39 | except Exception as e: | CODE |
| MEDIUM⚡ | crates/crates_io_real_ip/update-data.py | 40 | print(f"Error parsing IPv6 CIDR {cidr}: {e}", file=sys.stderr) | CODE |
| MEDIUM | crates/crates_io_real_ip/update-data.py | 137 | print("Error: No CloudFront networks found!", file=sys.stderr) | CODE |
| MEDIUM | crates/crates_io_real_ip/update-data.py | 165 | print("Error: No Fastly networks found!", file=sys.stderr) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | svelte/src/routes/settings/profile/+page.svelte | 21 | async function updateNotificationSettings() { | CODE |