Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust.
This report presents the forensic synthetic code analysis of actix/actix-web, a Rust project with 24,731 GitHub stars. SynthScan v2.0 examined 93,917 lines of code across 381 source files, recording 508 pattern matches distributed across 6 syntactic categories. The overall adjusted score of 5.8 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 508 distinct pattern matches across 6 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 | actix-http/examples/tls_rustls.rs | 1 | //! Demonstrates TLS configuration (via Rustls) for HTTP/1.1 and HTTP/2 connections. | COMMENT |
| LOW | actix-http/src/error.rs | 181 | COMMENT | |
| LOW | actix-http/src/error.rs | 261 | COMMENT | |
| LOW | actix-http/src/config.rs | 21 | /// Default HTTP/1 response write buffer size. | COMMENT |
| LOW | actix-http/src/config.rs | 81 | COMMENT | |
| LOW | actix-http/src/lib.rs | 1 | //! HTTP types and services for the Actix ecosystem. | COMMENT |
| LOW | actix-http/src/service.rs | 41 | /// # Automatic HTTP Version Selection | COMMENT |
| LOW | actix-http/src/keep_alive.rs | 1 | use std::time::Duration; | COMMENT |
| LOW | actix-http/src/extensions.rs | 41 | pub fn new() -> Extensions { | COMMENT |
| LOW | actix-http/src/extensions.rs | 61 | .insert(TypeId::of::<T>(), Box::new(val)) | COMMENT |
| LOW | actix-http/src/extensions.rs | 81 | /// ``` | COMMENT |
| LOW | actix-http/src/extensions.rs | 101 | pub fn get_mut<T: 'static>(&mut self) -> Option<&mut T> { | COMMENT |
| LOW | actix-http/src/extensions.rs | 121 | pub fn get_or_insert<T: 'static>(&mut self, value: T) -> &mut T { | COMMENT |
| LOW | actix-http/src/extensions.rs | 141 | .entry(TypeId::of::<T>()) | COMMENT |
| LOW | actix-http/src/extensions.rs | 161 | pub fn remove<T: 'static>(&mut self) -> Option<T> { | COMMENT |
| LOW | actix-http/src/builder.rs | 101 | /// Set client request timeout (for first request). | COMMENT |
| LOW | actix-http/src/builder.rs | 141 | #[deprecated(since = "3.0.0", note = "Renamed to `client_disconnect_timeout`.")] | COMMENT |
| LOW | actix-http/src/responses/builder.rs | 21 | /// | COMMENT |
| LOW | actix-http/src/responses/builder.rs | 61 | /// | COMMENT |
| LOW | actix-http/src/responses/builder.rs | 101 | } | COMMENT |
| LOW | actix-http/src/body/size.rs | 1 | /// Body size hint. | COMMENT |
| LOW | actix-http/src/body/size.rs | 21 | COMMENT | |
| LOW | actix-http/src/body/message_body.rs | 21 | /// - Empty body: `()` | COMMENT |
| LOW | actix-http/src/body/message_body.rs | 41 | /// fn size(&self) -> BodySize { | COMMENT |
| LOW | actix-http/src/body/message_body.rs | 61 | COMMENT | |
| LOW | actix-http/src/body/message_body.rs | 81 | /// method again may panic, block forever, or cause other kinds of problems; this trait places | COMMENT |
| LOW | actix-http/src/body/either.rs | 21 | /// middleware's own error responses use the default `Right` variant of `BoxBody`. Of course, | COMMENT |
| LOW | actix-http/src/body/utils.rs | 21 | /// use bytes::Bytes; | COMMENT |
| LOW | actix-http/src/body/utils.rs | 41 | #[display("limit exceeded while collecting body bytes")] | COMMENT |
| LOW | actix-http/src/body/utils.rs | 61 | /// assert!(bytes.is_empty()); | COMMENT |
| LOW | actix-http/src/requests/request.rs | 181 | COMMENT | |
| LOW | actix-http/src/h1/decoder.rs | 501 | /// | COMMENT |
| LOW | actix-http/src/h1/dispatcher.rs | 1021 | "dispatcher should not be in keep-alive phase if state is not none: {:?}", | COMMENT |
| LOW | actix-http/src/h1/dispatcher.rs | 1101 | return Ok(false); | COMMENT |
| LOW | actix-http/src/header/map.rs | 1 | //! A multi-value [`HeaderMap`] and its iterators. | COMMENT |
| LOW | actix-http/src/header/map.rs | 21 | /// | COMMENT |
| LOW | actix-http/src/header/map.rs | 81 | COMMENT | |
| LOW | actix-http/src/header/map.rs | 101 | HeaderMap::default() | COMMENT |
| LOW | actix-http/src/header/map.rs | 161 | /// map.insert(header::ACCEPT, HeaderValue::from_static("text/plain")); | COMMENT |
| LOW | actix-http/src/header/map.rs | 181 | /// | COMMENT |
| LOW | actix-http/src/header/map.rs | 201 | /// map.insert(header::ACCEPT, HeaderValue::from_static("text/plain")); | COMMENT |
| LOW | actix-http/src/header/map.rs | 241 | /// consistent for each call to `get` if the map has not changed. | COMMENT |
| LOW | actix-http/src/header/map.rs | 261 | /// assert!(map.get(header::HOST).is_none()); | COMMENT |
| LOW | actix-http/src/header/map.rs | 281 | /// let mut map = HeaderMap::new(); | COMMENT |
| LOW | actix-http/src/header/map.rs | 301 | /// Returns an iterator over all values associated with a header name. | COMMENT |
| LOW | actix-http/src/header/map.rs | 321 | /// assert!(set_cookies_iter.next().is_none()); | COMMENT |
| LOW | actix-http/src/header/map.rs | 341 | /// | COMMENT |
| LOW | actix-http/src/header/map.rs | 361 | /// # use actix_http::header::{self, HeaderMap, HeaderValue}; | COMMENT |
| LOW | actix-http/src/header/map.rs | 381 | /// let removed = map.insert(header::ACCEPT, HeaderValue::from_static("text/plain")); | COMMENT |
| LOW | actix-http/src/header/map.rs | 401 | /// let mut map = HeaderMap::new(); | COMMENT |
| LOW | actix-http/src/header/map.rs | 421 | } | COMMENT |
| LOW | actix-http/src/header/map.rs | 441 | /// assert!(removed.next().is_none()); | COMMENT |
| LOW | actix-http/src/header/map.rs | 461 | Ok(Cow::Borrowed(name)) => self.inner.remove(name), | COMMENT |
| LOW | actix-http/src/header/map.rs | 481 | /// assert!(map.is_empty()); | COMMENT |
| LOW | actix-http/src/header/map.rs | 501 | /// | COMMENT |
| LOW | actix-http/src/header/map.rs | 521 | /// let mut iter = map.iter(); | COMMENT |
| LOW | actix-http/src/header/map.rs | 541 | } | COMMENT |
| LOW | actix-http/src/header/map.rs | 561 | /// assert_eq!(keys.len(), 2); | COMMENT |
| LOW | actix-http/src/header/map.rs | 601 | COMMENT | |
| LOW | actix-http/src/header/common.rs | 1 | //! Common header names not defined in [`http`]. | COMMENT |
| 420 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | actix-web/src/middleware/mod.rs | 87 | //! ╭────────────────────┼────╮ | COMMENT |
| MEDIUM⚡ | actix-web/src/middleware/mod.rs | 89 | //! │ ╭──────────────────┼───╮│ | COMMENT |
| MEDIUM⚡ | actix-web/src/middleware/mod.rs | 91 | //! │ │ ╭────────────────┼──╮││ | COMMENT |
| MEDIUM⚡ | actix-web/src/middleware/mod.rs | 93 | //! │ │ │ ╭──────────────┼─╮│││ | COMMENT |
| MEDIUM⚡ | actix-web/src/middleware/mod.rs | 99 | //! │ │ │ ╰──────────────┼─╯│││ | COMMENT |
| MEDIUM⚡ | actix-web/src/middleware/mod.rs | 100 | //! │ │ ╰────────────────┼──╯││ | COMMENT |
| MEDIUM⚡ | actix-web/src/middleware/mod.rs | 101 | //! │ ╰──────────────────┼───╯│ | COMMENT |
| MEDIUM⚡ | actix-web/src/middleware/mod.rs | 102 | //! ╰────────────────────┼────╯ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | actix-multipart/src/test.rs | 66 | /// Bytes::from_static(b"Lorem ipsum."), | COMMENT |
| LOW | actix-multipart/src/test.rs | 72 | /// assert!(find(&body, b"Lorem ipsum.").is_some()); | COMMENT |
| LOW | actix-multipart/src/test.rs | 267 | Bytes::from_static(b"Lorem ipsum dolor\nsit ame."), | CODE |
| LOW⚡ | actix-multipart/src/test.rs | 281 | Lorem ipsum dolor\n\ | CODE |
| LOW⚡ | actix-multipart/src/test.rs | 291 | Bytes::from_static(b"Lorem ipsum dolor\nsit ame."), | CODE |
| LOW⚡ | actix-multipart/src/test.rs | 301 | Lorem ipsum dolor\n\ | CODE |
| LOW⚡ | actix-multipart/src/test.rs | 309 | TestFormField::new("foo", Bytes::from_static(b"Lorem ipsum dolor\nsit ame.")), | CODE |
| LOW | actix-multipart/src/test.rs | 320 | Lorem ipsum dolor\n\ | CODE |
| LOW | actix-multipart/src/test.rs | 338 | Bytes::from_static(b"Lorem ipsum dolor\nsit ame."), | CODE |
| LOW⚡ | actix-web/src/types/readlines.rs | 185 | b"Lorem Ipsum is simply dummy text of the printing and typesetting\n\ | CODE |
| LOW⚡ | actix-web/src/types/readlines.rs | 186 | industry. Lorem Ipsum has been the industry's standard dummy\n\ | CODE |
| LOW⚡ | actix-web/src/types/readlines.rs | 187 | Contrary to popular belief, Lorem Ipsum is not simply random text.", | CODE |
| LOW⚡ | actix-web/src/types/readlines.rs | 194 | "Lorem Ipsum is simply dummy text of the printing and typesetting\n" | CODE |
| LOW⚡ | actix-web/src/types/readlines.rs | 199 | "industry. Lorem Ipsum has been the industry's standard dummy\n" | CODE |
| LOW⚡ | actix-web/src/types/readlines.rs | 204 | "Contrary to popular belief, Lorem Ipsum is not simply random text." | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | actix-web/src/extract.rs | 22 | /// leverage extractors when implementing middlewares. | COMMENT |
| MEDIUM | actix-web/src/app.rs | 69 | /// Any [`Data<T>`] type added here can utilize its extractor implementation in handlers. | COMMENT |
| MEDIUM | actix-web/src/guard/mod.rs | 9 | //! Fundamentally, a guard is a predicate function that receives a reference to a request context | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | actix-web/src/web.rs | 107 | #[doc = concat!(" In this example, one `", stringify!($method_const), " /{project_id}` route is set up:")] | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | actix-web/src/info.rs | 121 | // TODO: implement https://datatracker.ietf.org/doc/html/rfc7239#section-5.1 | COMMENT |