An async ORM for Rust
This report presents the forensic synthetic code analysis of tokio-rs/toasty, a Rust project with 2,733 GitHub stars. SynthScan v2.0 examined 171,328 lines of code across 938 source files, recording 1098 pattern matches distributed across 7 syntactic categories. The overall adjusted score of 6.5 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 1098 distinct pattern matches across 7 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | compose.yaml | 1 | # Docker Compose file to start all database management systems supported by Toasty. | COMMENT |
| LOW | crates/toasty-cli/src/config.rs | 1 | use crate::migration::MigrationConfig; | COMMENT |
| LOW | crates/toasty-cli/src/config.rs | 21 | /// MigrationConfig::new() | COMMENT |
| LOW | crates/toasty-cli/src/lib.rs | 1 | #![warn(missing_docs)] | COMMENT |
| LOW | crates/toasty-cli/src/lib.rs | 21 | //! read and write the TOML history that tracks which migrations exist. | COMMENT |
| LOW | crates/toasty-cli/src/lib.rs | 41 | pub use migration::{ | COMMENT |
| LOW | crates/toasty-cli/src/migration/config.rs | 1 | use serde::{Deserialize, Serialize}; | COMMENT |
| LOW | crates/toasty-cli/src/migration/config.rs | 21 | /// .prefix_style(MigrationPrefixStyle::Timestamp); | COMMENT |
| LOW | crates/toasty-cli/src/migration/config.rs | 41 | /// Style of migration file prefixes | COMMENT |
| LOW | crates/toasty-cli/src/migration/config.rs | 61 | /// # Examples | COMMENT |
| LOW | crates/toasty-cli/src/migration/generate.rs | 21 | /// the most recent snapshot. If there are differences, generates a SQL | COMMENT |
| LOW | crates/toasty-core/tests/stmt_eval_project.rs | 241 | expr.eval(ConstInput::new()).unwrap(), | COMMENT |
| LOW | crates/toasty-core/tests/stmt_eval_unimplemented.rs | 1 | //! Tests for expression variants that either: | COMMENT |
| LOW | crates/toasty-core/src/stmt.rs | 1 | //! Statement AST types for Toasty's query compilation pipeline. | COMMENT |
| LOW | crates/toasty-core/src/stmt.rs | 321 | /// A `Statement` is the primary input to the query engine's compilation | COMMENT |
| LOW | crates/toasty-core/src/error.rs | 41 | use invalid_type_conversion::InvalidTypeConversion; | COMMENT |
| LOW | crates/toasty-core/src/error.rs | 61 | /// | COMMENT |
| LOW | crates/toasty-core/src/error.rs | 81 | /// This is used by [`Error::context`] to accept either an `Error` directly or | COMMENT |
| LOW | crates/toasty-core/src/error.rs | 121 | ReadOnlyTransaction(ReadOnlyTransaction), | COMMENT |
| LOW | crates/toasty-core/src/error.rs | 141 | /// Panics if `consequent` already has a cause attached. | COMMENT |
| LOW | crates/toasty-core/src/lib.rs | 1 | //! Core types and abstractions for the Toasty ORM. | COMMENT |
| LOW | crates/toasty-core/src/lib.rs | 41 | COMMENT | |
| LOW | crates/toasty-core/src/schema.rs | 1 | //! Schema representation for Toasty, split into three layers. | COMMENT |
| LOW | crates/toasty-core/src/schema.rs | 41 | mod name; | COMMENT |
| LOW | crates/toasty-core/src/schema.rs | 61 | /// for (id, model) in &schema.app.models { | COMMENT |
| LOW | crates/toasty-core/src/schema.rs | 81 | /// | COMMENT |
| LOW | crates/toasty-core/src/schema.rs | 101 | /// ```ignore | COMMENT |
| LOW | crates/toasty-core/src/driver.rs | 1 | //! Database driver interface for Toasty. | COMMENT |
| LOW | crates/toasty-core/src/driver.rs | 21 | //! ```text | COMMENT |
| LOW | crates/toasty-core/src/driver.rs | 41 | //! | COMMENT |
| LOW | crates/toasty-core/src/driver.rs | 81 | /// can apply configuration at construction time rather than through separate | COMMENT |
| LOW | crates/toasty-core/src/driver.rs | 101 | /// | COMMENT |
| LOW | crates/toasty-core/src/driver.rs | 141 | /// | COMMENT |
| LOW | crates/toasty-core/src/driver.rs | 161 | #[async_trait] | COMMENT |
| LOW | crates/toasty-core/src/driver.rs | 181 | /// | COMMENT |
| LOW | crates/toasty-core/src/driver.rs | 201 | /// signal stay on this default and rely on the active path: an | COMMENT |
| LOW | crates/toasty-core/src/driver.rs | 221 | /// any other error variant from `ping` will leak a dead connection | COMMENT |
| LOW | crates/toasty-core/src/macros.rs | 1 | /// Constructs a [`stmt::Path`](crate::stmt::Path) from a dot-separated | COMMENT |
| LOW | crates/toasty-core/src/stmt/expr_all_op.rs | 1 | use super::{BinaryOp, Expr}; | COMMENT |
| LOW | crates/toasty-core/src/stmt/source_table.rs | 1 | use crate::stmt::{ExprArg, Source, SourceTableId, TableFactor}; | COMMENT |
| LOW | crates/toasty-core/src/stmt/func_json_extract.rs | 1 | use super::{Expr, ExprFunc, Type}; | COMMENT |
| LOW | crates/toasty-core/src/stmt/join.rs | 1 | use super::{Expr, SourceTableId}; | COMMENT |
| LOW | crates/toasty-core/src/stmt/join.rs | 21 | pub table: SourceTableId, | COMMENT |
| LOW | crates/toasty-core/src/stmt/func_count.rs | 1 | use super::{Expr, ExprFunc}; | COMMENT |
| LOW | crates/toasty-core/src/stmt/expr_func.rs | 1 | use super::{Expr, FuncCount, FuncJsonExtract, FuncLastInsertId}; | COMMENT |
| LOW | crates/toasty-core/src/stmt/limit.rs | 1 | use super::Expr; | COMMENT |
| LOW | crates/toasty-core/src/stmt/limit.rs | 21 | /// Cursor-based pagination parameters. | COMMENT |
| LOW | crates/toasty-core/src/stmt/expr_set_op.rs | 1 | use super::{ExprSet, SetOp}; | COMMENT |
| LOW | crates/toasty-core/src/stmt/expr_reference.rs | 1 | use crate::{ | COMMENT |
| LOW | crates/toasty-core/src/stmt/expr_reference.rs | 21 | /// A reference to a column in a database-level statement. | COMMENT |
| LOW | crates/toasty-core/src/stmt/expr_reference.rs | 41 | /// | COMMENT |
| LOW | crates/toasty-core/src/stmt/num.rs | 1 | //! Numeric type support for [`Value`], [`Expr`], and [`Type`]. | COMMENT |
| LOW | crates/toasty-core/src/stmt/op_set.rs | 1 | use std::fmt; | COMMENT |
| LOW | crates/toasty-core/src/stmt/document_storage_text.rs | 1 | use std::fmt; | COMMENT |
| LOW | crates/toasty-core/src/stmt/document_storage_text.rs | 41 | COMMENT | |
| LOW | crates/toasty-core/src/stmt/order_by_expr.rs | 1 | use super::{Direction, Expr}; | COMMENT |
| LOW | crates/toasty-core/src/stmt/insert_table.rs | 1 | use super::InsertTarget; | COMMENT |
| LOW | crates/toasty-core/src/stmt/value_stream.rs | 21 | /// [`typed`](ValueStream::typed), every yielded value is checked at | COMMENT |
| LOW | crates/toasty-core/src/stmt/value_stream.rs | 221 | assert!(self.stream.is_none()); | COMMENT |
| LOW | crates/toasty-core/src/stmt/expr_or.rs | 1 | use super::Expr; | COMMENT |
| 932 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | README.md | 80 | name: "John Doe", | CODE |
| LOW | …tion-suite/src/tests/embed_enum_string_discriminant.rs | 151 | number: "555-0100".into(), | CODE |
| LOW | …tion-suite/src/tests/embed_enum_string_discriminant.rs | 160 | number: "555-0100".into() | CODE |
| LOW | …tion-suite/src/tests/embed_enum_string_discriminant.rs | 209 | number: "555-0100".into(), | CODE |
| LOW | …tion-suite/src/tests/embed_enum_string_discriminant.rs | 218 | number: "555-0100".into() | CODE |
| LOW | …tion-suite/src/tests/embed_enum_string_discriminant.rs | 265 | number: "555-0200".into(), | CODE |
| LOW⚡ | …tion-suite/src/tests/embed_enum_string_discriminant.rs | 283 | number: "555-0200".into() | CODE |
| LOW⚡ | …tion-suite/src/tests/embed_enum_string_discriminant.rs | 291 | number: "555-0300".into(), | CODE |
| LOW⚡ | …tion-suite/src/tests/embed_enum_string_discriminant.rs | 300 | number: "555-0300".into() | CODE |
| LOW | …river-integration-suite/src/tests/crud_batch_create.rs | 138 | .item(User::create().email("user@example.com")) | CODE |
| LOW | …river-integration-suite/src/tests/crud_batch_create.rs | 139 | .item(User::create().email("user@example.com")) | CODE |
| LOW | …r-integration-suite/src/tests/relation_has_one_crud.rs | 8 | let user = User::create().name("Jane Doe").exec(&mut db).await?; | CODE |
| LOW | …r-integration-suite/src/tests/relation_has_one_crud.rs | 302 | let user = User::create().name("Jane Doe").exec(&mut db).await?; | CODE |
| LOW | …-driver-integration-suite/src/tests/embed_enum_data.rs | 120 | number: "555-1234".to_string(), | CODE |
| LOW | …-driver-integration-suite/src/tests/embed_enum_data.rs | 138 | number: "555-1234".to_string() | CODE |
| LOW | …-driver-integration-suite/src/tests/embed_enum_data.rs | 406 | email: "user@example.com".to_string(), | CODE |
| LOW | …-driver-integration-suite/src/tests/embed_enum_data.rs | 414 | street: "123 Main St".to_string(), | CODE |
| LOW | …-driver-integration-suite/src/tests/embed_enum_data.rs | 425 | email: "user@example.com".to_string() | CODE |
| LOW | …-driver-integration-suite/src/tests/embed_enum_data.rs | 434 | street: "123 Main St".to_string(), | CODE |
| LOW | …ion-suite/src/tests/embed_enum_filter_variant_field.rs | 20 | number: "555-1234".to_string(), | CODE |
| LOW | …ion-suite/src/tests/embed_enum_filter_variant_field.rs | 51 | .matches(|e| e.number().eq("555-1234")), | CODE |
| LOW | …ion-suite/src/tests/embed_enum_filter_variant_field.rs | 111 | number: "555-1234".to_string(), | CODE |
| LOW | …driver-integration-suite/src/tests/embed_enum_index.rs | 121 | number: "555-1234".to_string(), | CODE |
| LOW | …integration-suite/src/tests/select_projection_embed.rs | 30 | street: "123 Main St".to_string(), | CODE |
| LOW⚡ | …sty-driver-integration-suite/src/tests/embed_struct.rs | 963 | street: "123 Main St".to_string(), | CODE |
| LOW⚡ | …sty-driver-integration-suite/src/tests/embed_struct.rs | 973 | street: "123 Main St", | CODE |
| LOW⚡ | …sty-driver-integration-suite/src/tests/embed_struct.rs | 983 | street: "123 Main St", | CODE |
| LOW | …sty-driver-integration-suite/src/tests/embed_struct.rs | 162 | street: "123 Main St".to_string(), | CODE |
| LOW | …sty-driver-integration-suite/src/tests/embed_struct.rs | 170 | assert_eq!(found.address.street, "123 Main St"); | CODE |
| LOW | …sty-driver-integration-suite/src/tests/embed_struct.rs | 258 | ("USA", "Alice", "123 Main St", "Seattle", "98101"), | CODE |
| LOW | …sty-driver-integration-suite/src/tests/embed_struct.rs | 555 | street: "123 Main St".to_string(), | CODE |
| LOW | …sty-driver-integration-suite/src/tests/embed_struct.rs | 564 | street: "123 Main St", | CODE |
| LOW | …sty-driver-integration-suite/src/tests/embed_struct.rs | 577 | street: "123 Main St", | CODE |
| LOW | …sty-driver-integration-suite/src/tests/embed_struct.rs | 585 | street: "123 Main St", | CODE |
| LOW | …sty-driver-integration-suite/src/tests/embed_struct.rs | 601 | street: "123 Main St", | CODE |
| LOW | …sty-driver-integration-suite/src/tests/embed_struct.rs | 609 | street: "123 Main St", | CODE |
| LOW | …sty-driver-integration-suite/src/tests/embed_struct.rs | 1052 | street: "123 Main St".to_string(), | CODE |
| LOW | …sty-driver-integration-suite/src/tests/embed_struct.rs | 1074 | street: "123 Main St", | CODE |
| LOW | …sty-driver-integration-suite/src/tests/embed_struct.rs | 1094 | street: "123 Main St", | CODE |
| LOW | …sty-driver-integration-suite/src/tests/embed_struct.rs | 1114 | street: "123 Main St", | CODE |
| LOW | …sty-driver-integration-suite/src/tests/embed_struct.rs | 1132 | street: "123 Main St".to_string(), | CODE |
| LOW | …sty-driver-integration-suite/src/tests/embed_struct.rs | 1149 | street: "123 Main St", | CODE |
| LOW | …sty-driver-integration-suite/src/tests/embed_struct.rs | 1166 | street: "123 Main St", | CODE |
| LOW | …ration-suite/src/tests/embed_enum_filter_comparison.rs | 81 | number: "555-1234".to_string(), | CODE |
| LOW⚡ | …oasty-driver-integration-suite/src/tests/crud_basic.rs | 400 | .email("user@example.com") | CODE |
| LOW⚡ | …oasty-driver-integration-suite/src/tests/crud_basic.rs | 401 | .name("John Doe") | CODE |
| LOW⚡ | …oasty-driver-integration-suite/src/tests/crud_basic.rs | 409 | user.update().name("Jane Doe").exec(&mut db).await?; | CODE |
| LOW⚡ | …oasty-driver-integration-suite/src/tests/crud_basic.rs | 411 | assert_eq!("Jane Doe", user.name); | CODE |
| LOW⚡ | …oasty-driver-integration-suite/src/tests/crud_basic.rs | 427 | email: "user@example.com", | CODE |
| LOW⚡ | …oasty-driver-integration-suite/src/tests/crud_basic.rs | 428 | name: "John Doe", | CODE |
| LOW⚡ | …oasty-driver-integration-suite/src/tests/crud_basic.rs | 437 | .email("user@example.com") | CODE |
| LOW⚡ | …oasty-driver-integration-suite/src/tests/crud_basic.rs | 438 | .name("Jane Doe") | CODE |
| LOW⚡ | …oasty-driver-integration-suite/src/tests/crud_basic.rs | 442 | assert_eq!("user@example.com", user.email); | CODE |
| LOW⚡ | …oasty-driver-integration-suite/src/tests/crud_basic.rs | 443 | assert_eq!("Jane Doe", user.name); | CODE |
| LOW⚡ | …oasty-driver-integration-suite/src/tests/crud_basic.rs | 461 | .name("John Doe") | CODE |
| LOW⚡ | …oasty-driver-integration-suite/src/tests/crud_basic.rs | 468 | .name("Jane Doe") | CODE |
| LOW⚡ | …oasty-driver-integration-suite/src/tests/crud_basic.rs | 473 | assert_eq!("Jane Doe", user.name); | CODE |
| LOW⚡ | …oasty-driver-integration-suite/src/tests/crud_basic.rs | 477 | assert_eq!("Jane Doe", user.name); | CODE |
| LOW | …oasty-driver-integration-suite/src/tests/crud_basic.rs | 498 | let user = User::create().name("John Doe").exec(&mut db).await?; | CODE |
| LOW | …y-driver-integration-suite/src/tests/deferred_embed.rs | 123 | number: "555-0100".to_string(), | CODE |
| 17 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | crates/toasty/src/engine/index/tests.rs | 294 | // ── key_values extraction ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/toasty/src/engine/lower/include.rs | 32 | //! └────────────────────────────────── └── enum → process_enum_arms | COMMENT |
| MEDIUM | tests/tests/dynamodb.rs | 93 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/tests/dynamodb.rs | 107 | // ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/tests/dynamodb.rs | 109 | // ── Base table tests (composite partition + sort key) ──────────────────────── | COMMENT |
| MEDIUM | tests/tests/dynamodb.rs | 228 | // ── GSI tests (non-unique index on a UUID-keyed model) ─────────────────────── | COMMENT |
| MEDIUM | scripts/claude-triage-pr.sh | 5 | # ------------ | COMMENT |
| MEDIUM⚡ | scripts/claude-triage-pr.sh | 51 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | scripts/claude-triage-pr.sh | 53 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | scripts/claude-triage-pr.sh | 56 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | scripts/claude-triage-pr.sh | 63 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scripts/claude-triage-pr.sh | 83 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scripts/claude-triage-pr.sh | 87 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scripts/claude-triage-pr.sh | 136 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scripts/claude-triage-pr.sh | 139 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scripts/claude-triage-pr.sh | 162 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scripts/claude-triage-pr.sh | 164 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scripts/claude-triage-pr.sh | 177 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scripts/claude-triage-pr.sh | 180 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scripts/claude-triage-pr.sh | 199 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scripts/claude-triage-pr.sh | 201 | # --------------------------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/toasty-driver-postgresql/src/lib.rs | 277 | // Step 1: Connect to the target DB and create a temp DB | COMMENT |
| LOW | crates/toasty-driver-postgresql/src/lib.rs | 289 | // Step 2: Connect to the temp DB, drop and recreate the target | COMMENT |
| LOW | crates/toasty-driver-postgresql/src/lib.rs | 310 | // Step 3: Connect back to the target and clean up the temp DB | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/toasty-driver-postgresql/src/lib.rs | 277 | // Step 1: Connect to the target DB and create a temp DB | COMMENT |
| LOW | crates/toasty-driver-postgresql/src/lib.rs | 289 | // Step 2: Connect to the temp DB, drop and recreate the target | COMMENT |
| LOW | crates/toasty-driver-postgresql/src/lib.rs | 310 | // Step 3: Connect back to the target and clean up the temp DB | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | crates/toasty/src/engine/plan/statement.rs | 579 | // If targeting SQL, leverage the SQL query engine to handle most of the rewrite details. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .github/labels.yml | 3 | # This file is the source of truth for repository labels. It is synced by | COMMENT |