A web framework for Rust.
This report summarizes scanner evidence for rwf2/Rocket, a Rust project with 25,816 GitHub stars. SynthScan examined 104,433 lines of code across 635 source files, recording 1629 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 14.8 (Moderate 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-11-27.
Can maintainers explain intent, assumptions, and trade-offs? 1624 finding(s).
Are imports declared and package/API names verified? 5 finding(s).
Are wrappers, guards, and repeated structures necessary? 0 finding(s).
Which changes need focused human review? 1629 finding(s).
Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.
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 1629 distinct pattern matches across 7 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 | core/codegen/tests/uri_display.rs | 281 | // | COMMENT |
| LOW | core/codegen/src/lib.rs | 1 | #![recursion_limit="128"] | COMMENT |
| LOW | core/codegen/src/lib.rs | 21 | //! | COMMENT |
| LOW | core/codegen/src/lib.rs | 41 | //! use rocket::{get, routes}; | COMMENT |
| LOW | core/codegen/src/lib.rs | 101 | /// | COMMENT |
| LOW | core/codegen/src/lib.rs | 121 | /// Additionally, [`route`] allows the method and uri to be explicitly | COMMENT |
| LOW | core/codegen/src/lib.rs | 141 | /// [`delete`]: attr.delete.html | COMMENT |
| LOW | core/codegen/src/lib.rs | 161 | /// | COMMENT |
| LOW | core/codegen/src/lib.rs | 181 | /// method := 'method' '=' METHOD | COMMENT |
| LOW | core/codegen/src/lib.rs | 201 | /// # fn f(foo: usize, baz: PathBuf, msg: String, rest: F, form: Form<F>) { } | COMMENT |
| LOW | core/codegen/src/lib.rs | 221 | /// [`FromRequest`] trait. | COMMENT |
| LOW | core/codegen/src/lib.rs | 241 | /// | COMMENT |
| LOW | core/codegen/src/lib.rs | 261 | /// `Error`. See [`FromData`] for further detail. | COMMENT |
| LOW | core/codegen/src/lib.rs | 301 | /// | COMMENT |
| LOW | core/codegen/src/lib.rs | 321 | /// # Grammar | COMMENT |
| LOW | core/codegen/src/lib.rs | 341 | /// | COMMENT |
| LOW | core/codegen/src/lib.rs | 361 | /// [`Catcher`]: ../rocket/struct.Catcher.html | COMMENT |
| LOW | core/codegen/src/lib.rs | 381 | /// # #[macro_use] extern crate rocket; | COMMENT |
| LOW | core/codegen/src/lib.rs | 401 | /// # #[macro_use] extern crate rocket; | COMMENT |
| LOW | core/codegen/src/lib.rs | 421 | /// into a regular `main` function that internally initializes a Rocket-specific | COMMENT |
| LOW | core/codegen/src/lib.rs | 441 | /// let rocket = rocket::build().ignite().await?; | COMMENT |
| LOW | core/codegen/src/lib.rs | 461 | /// | COMMENT |
| LOW | core/codegen/src/lib.rs | 481 | /// # rocket::build() | COMMENT |
| LOW | core/codegen/src/lib.rs | 501 | /// ``` | COMMENT |
| LOW | core/codegen/src/lib.rs | 521 | /// The [`FromFormField`] derive can be applied to enums with nullary | COMMENT |
| LOW | core/codegen/src/lib.rs | 541 | /// As an example, for the `enum` above, the form values `"first"`, `"FIRST"`, | COMMENT |
| LOW | core/codegen/src/lib.rs | 561 | /// | COMMENT |
| LOW | core/codegen/src/lib.rs | 581 | #[proc_macro_derive(FromFormField, attributes(field))] | COMMENT |
| LOW | core/codegen/src/lib.rs | 601 | /// r#type: usize, | COMMENT |
| LOW | core/codegen/src/lib.rs | 621 | /// of the field's type. The `FromForm` implementation succeeds only when all | COMMENT |
| LOW | core/codegen/src/lib.rs | 641 | /// | 'uncased(' '"' FIELD_NAME '"' ') | COMMENT |
| LOW | core/codegen/src/lib.rs | 661 | /// #[field(default = 42)] | COMMENT |
| LOW | core/codegen/src/lib.rs | 681 | /// ## Field Attribute Parameters | COMMENT |
| LOW | core/codegen/src/lib.rs | 701 | /// of the field to be `expr.into()`. If `expr` _is_ `None`, the parameter | COMMENT |
| LOW | core/codegen/src/lib.rs | 721 | /// struct MyForm { | COMMENT |
| LOW | core/codegen/src/lib.rs | 741 | /// use rocket::serde::json::Json; | COMMENT |
| LOW | core/codegen/src/lib.rs | 761 | /// ```rust | COMMENT |
| LOW | core/codegen/src/lib.rs | 781 | /// further details. | COMMENT |
| LOW | core/codegen/src/lib.rs | 801 | /// use rocket::request::FromParam; | COMMENT |
| LOW | core/codegen/src/lib.rs | 821 | /// MyParam::Bob => "Bob", | COMMENT |
| LOW | core/codegen/src/lib.rs | 841 | /// #[derive(Responder)] | COMMENT |
| LOW | core/codegen/src/lib.rs | 861 | /// [`Response::set_header()`]. As such, every other field (unless explicitly | COMMENT |
| LOW | core/codegen/src/lib.rs | 881 | /// struct MyOtherResponder { | COMMENT |
| LOW | core/codegen/src/lib.rs | 901 | /// parameter := 'status' '=' STATUS | COMMENT |
| LOW | core/codegen/src/lib.rs | 921 | /// A(String), | COMMENT |
| LOW | core/codegen/src/lib.rs | 941 | /// The value of `content_type` must be a valid media-type in `top/sub` form or | COMMENT |
| LOW | core/codegen/src/lib.rs | 961 | /// | COMMENT |
| LOW | core/codegen/src/lib.rs | 981 | /// #[derive(Responder)] | COMMENT |
| LOW | core/codegen/src/lib.rs | 1001 | /// ```rust | COMMENT |
| LOW | core/codegen/src/lib.rs | 1021 | COMMENT | |
| LOW | core/codegen/src/lib.rs | 1041 | /// } | COMMENT |
| LOW | core/codegen/src/lib.rs | 1061 | /// | COMMENT |
| LOW | core/codegen/src/lib.rs | 1081 | /// `name` attribute is used instead of the structure's actual field name. If | COMMENT |
| LOW | core/codegen/src/lib.rs | 1101 | /// The field attribute directs that a different value be used when calling | COMMENT |
| LOW | core/codegen/src/lib.rs | 1121 | /// ```rust | COMMENT |
| LOW | core/codegen/src/lib.rs | 1141 | COMMENT | |
| LOW | core/codegen/src/lib.rs | 1161 | /// ```rust | COMMENT |
| LOW | core/codegen/src/lib.rs | 1181 | /// assert_eq!(hello_route.uri.path(), "/hi/<person>"); | COMMENT |
| LOW | core/codegen/src/lib.rs | 1201 | /// their corresponding [`Catcher`] structures. For example, given the following | COMMENT |
| LOW | core/codegen/src/lib.rs | 1221 | /// ```rust | COMMENT |
| 1554 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | core/lib/src/response/response.rs | 42 | /// [merge](#method.merge) and [join](#method.join) methods facilitate this. The | COMMENT |
| MEDIUM | core/lib/src/response/responder.rs | 127 | /// It allows you to leverage existing `Responder` implementations through | COMMENT |
| MEDIUM | core/lib/src/local/asynchronous/mod.rs | 4 | //! be used with `#[rocket::async_test]` or another asynchronous test harness. | COMMENT |
| MEDIUM | core/lib/src/local/blocking/mod.rs | 4 | //! used in Rust's synchronous `#[test]` harness. This is accomplished by | COMMENT |
| MEDIUM | core/lib/src/fairing/mod.rs | 89 | /// cleaner, more composable, and more robust manner. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | core/codegen/src/attribute/catch/mod.rs | 27 | return Err(catch.function.sig.paren_token.span.join() | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | core/lib/src/lib.rs | 36 | //! to write Rocket applications. Here's a simple example to get you started: | COMMENT |
| MEDIUM | examples/responders/src/main.rs | 129 | // `response::content` for demonstration purposes. In a real application, | COMMENT |
| MEDIUM | examples/tls/Rocket.toml | 6 | # these certificate/key pairs. They are here for DEMONSTRATION PURPOSES ONLY. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | contrib/ws/tests/closed-connection.rs | 89 | // already closed as requested, so this is not an error. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/pastebin/src/tests.rs | 70 | let body_3 = "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed | CODE |
| LOW | examples/pastebin/src/tests.rs | 70 | let body_3 = "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed | CODE |
| LOW | examples/manual-routing/src/tests.rs | 34 | let expected_body = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, \ | CODE |
| LOW | examples/manual-routing/src/tests.rs | 34 | let expected_body = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, \ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/tls/private/gen_certs.sh | 3 | # Usage: | COMMENT |