Raw bindings to platform APIs for Rust
This report summarizes scanner evidence for rust-lang/libc, a Rust project with 2,641 GitHub stars. SynthScan examined 182,371 lines of code across 644 source files, recording 167 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 0.9 (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? 166 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 2 finding(s).
Which changes need focused human review? 167 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 167 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 | build.rs | 41 | VxworksLt25_09, | COMMENT |
| LOW | libc-test/tests/style_lib/mod.rs | 1 | //! Provides the [StyleChecker] visitor to verify the coding style of | COMMENT |
| LOW | libc-test/src/icmp6_filter.c | 1 | #include <stdbool.h> | COMMENT |
| LOW | ci/style.py | 81 | # match (trying to match parentheses would catch the first closing `)` which | COMMENT |
| LOW | ci/docker/x86_64-linux-android/cuttlefish-entrypoint.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | ctest/build.rs | 1 | use std::env; | COMMENT |
| LOW | ctest/build.rs | 21 | // Similarly FLAGS and RUNNER are also not an issue, if CARGO_TARGET_{}_RUSTFLAGS are present | COMMENT |
| LOW | ctest/tests/input/macro.out.edition-2024.rs | 1 | /* This file was autogenerated by ctest; do not modify directly */ | COMMENT |
| LOW | ctest/tests/input/macro.out.c | 1 | /* This file was autogenerated by ctest; do not modify directly */ | COMMENT |
| LOW | ctest/tests/input/macro.out.c | 201 | #pragma GCC diagnostic pop | COMMENT |
| LOW | ctest/tests/input/simple.out.with-skips.rs | 1 | /* This file was autogenerated by ctest; do not modify directly */ | COMMENT |
| LOW | ctest/tests/input/simple.out.with-skips.c | 1 | /* This file was autogenerated by ctest; do not modify directly */ | COMMENT |
| LOW | ctest/tests/input/simple.out.with-skips.c | 101 | COMMENT | |
| LOW | ctest/tests/input/hierarchy.out.rs | 1 | /* This file was autogenerated by ctest; do not modify directly */ | COMMENT |
| LOW | ctest/tests/input/hierarchy.out.c | 1 | /* This file was autogenerated by ctest; do not modify directly */ | COMMENT |
| LOW | ctest/tests/input/hierarchy.out.c | 101 | } | COMMENT |
| LOW | ctest/tests/input/simple.out.with-renames.rs | 1 | /* This file was autogenerated by ctest; do not modify directly */ | COMMENT |
| LOW | ctest/tests/input/simple.out.with-renames.c | 1 | /* This file was autogenerated by ctest; do not modify directly */ | COMMENT |
| LOW | ctest/tests/input/macro.out.rs | 1 | /* This file was autogenerated by ctest; do not modify directly */ | COMMENT |
| LOW | ctest/tests/input/macro.out.edition-2024.c | 1 | /* This file was autogenerated by ctest; do not modify directly */ | COMMENT |
| LOW | ctest/tests/input/macro.out.edition-2024.c | 201 | #pragma GCC diagnostic pop | COMMENT |
| LOW | ctest/src/cdecl.rs | 81 | pub(crate) struct InvalidReturn; | COMMENT |
| LOW | ctest/src/lib.rs | 1 | #![warn(missing_docs)] | COMMENT |
| LOW | ctest/src/lib.rs | 21 | //! // Set up C flags and defines | COMMENT |
| LOW | ctest/src/lib.rs | 41 | //! ```toml | COMMENT |
| LOW | ctest/src/lib.rs | 101 | COMMENT | |
| LOW | ctest/src/generator.rs | 61 | /// A vector of tuples, the left side being the header itself, and the right | COMMENT |
| LOW | ctest/src/generator.rs | 101 | pub(crate) skip_roundtrip: Option<SkipTest>, | COMMENT |
| LOW | ctest/src/generator.rs | 141 | COMMENT | |
| LOW | ctest/src/generator.rs | 161 | COMMENT | |
| LOW | ctest/src/generator.rs | 181 | defines: impl IntoIterator<Item = impl AsRef<str>>, | COMMENT |
| LOW | ctest/src/generator.rs | 201 | /// cfg.language(Language::CXX); | COMMENT |
| LOW | ctest/src/generator.rs | 221 | pub fn target(&mut self, target: &str) -> &mut Self { | COMMENT |
| LOW | ctest/src/generator.rs | 241 | /// | COMMENT |
| LOW | ctest/src/generator.rs | 261 | /// ```no_run | COMMENT |
| LOW | ctest/src/generator.rs | 281 | /// use ctest::TestGenerator; | COMMENT |
| LOW | ctest/src/generator.rs | 301 | /// let mut cfg = TestGenerator::new(); | COMMENT |
| LOW | ctest/src/generator.rs | 321 | self | COMMENT |
| LOW | ctest/src/generator.rs | 341 | /// # Examples | COMMENT |
| LOW | ctest/src/generator.rs | 401 | COMMENT | |
| LOW | ctest/src/generator.rs | 421 | } else { | COMMENT |
| LOW | ctest/src/generator.rs | 461 | /// ```no_run | COMMENT |
| LOW | ctest/src/generator.rs | 521 | COMMENT | |
| LOW | ctest/src/generator.rs | 541 | } else { | COMMENT |
| LOW | ctest/src/generator.rs | 641 | /// | COMMENT |
| LOW | ctest/src/generator.rs | 661 | } | COMMENT |
| LOW | ctest/src/generator.rs | 681 | false | COMMENT |
| LOW | ctest/src/generator.rs | 701 | self.flags.push(flag.to_string()); | COMMENT |
| LOW | ctest/src/generator.rs | 741 | /// | COMMENT |
| LOW | ctest/src/generator.rs | 781 | })); | COMMENT |
| LOW | ctest/src/generator.rs | 821 | /// | COMMENT |
| LOW | ctest/src/generator.rs | 841 | } | COMMENT |
| LOW | ctest/src/generator.rs | 861 | } | COMMENT |
| LOW | ctest/src/generator.rs | 961 | /// | COMMENT |
| LOW | ctest/src/generator.rs | 981 | } | COMMENT |
| LOW | ctest/src/generator.rs | 1001 | if let MapInput::StructType(ty) = item { | COMMENT |
| LOW | ctest/src/generator.rs | 1041 | /// | COMMENT |
| LOW | ctest/src/generator.rs | 1061 | /// | COMMENT |
| LOW | ctest/src/generator.rs | 1081 | COMMENT | |
| LOW | ctest/src/generator.rs | 1101 | pub fn skip_fn_ptrcheck(&mut self, f: impl Fn(&str) -> bool + 'static) -> &mut Self { | COMMENT |
| 99 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | ci/install-musl.sh | 141 | # Create a version of APKBUILD that dumps the variables we're interested | COMMENT |
| MEDIUM | ci/docker/x86_64-linux-android/cuttlefish-entrypoint.sh | 17 | # Create the bridges, taps and dnsmasq instances backing the device's | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | etc/libc-util.py | 846 | except sp.CalledProcessError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | ctest/src/tests.rs | 115 | // FIXME(ctest): Reimplement support for ABI in a more robust way. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | etc/libc-util.py | 375 | CODE | |
| LOW | etc/libc-util.py | 474 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ci/install-musl.sh | 173 | # Check if file is known | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | etc/libc-util.py | 776 | def fetch_needs_backport_list(self) -> list["PullRequest"]: | STRING |