egui: an easy-to-use immediate mode GUI in Rust that runs on both web and native
This report summarizes scanner evidence for emilk/egui, a Rust project with 31,161 GitHub stars. SynthScan examined 157,956 lines of code across 609 source files, recording 842 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 5.6 (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.
Can maintainers explain intent, assumptions, and trade-offs? 810 finding(s).
Are imports declared and package/API names verified? 8 finding(s).
Are wrappers, guards, and repeated structures necessary? 25 finding(s).
Which changes need focused human review? 842 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 842 distinct pattern matches across 9 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 | lychee.toml | 1 | ################################################################################ | COMMENT |
| LOW | deny.toml | 1 | # Copied from https://github.com/rerun-io/rerun_template | COMMENT |
| LOW | clippy.toml | 21 | COMMENT | |
| LOW | crates/eframe/Cargo.toml | 41 | ## Enable platform accessibility API implementations through [AccessKit](https://accesskit.dev/). | COMMENT |
| LOW | crates/eframe/Cargo.toml | 81 | "glutin?/wayland", | COMMENT |
| LOW | crates/eframe/Cargo.toml | 101 | ## Switching from `wgpu (the default)` to `glow` can significantly reduce your binary size | COMMENT |
| LOW | crates/eframe/src/lib.rs | 1 | //! eframe - the [`egui`] framework crate | COMMENT |
| LOW | crates/eframe/src/lib.rs | 21 | //! If your app is only for native, and you don't need advanced features like state persistence, | COMMENT |
| LOW | crates/eframe/src/lib.rs | 41 | //! // for e.g. egui::PaintCallback. | COMMENT |
| LOW | crates/eframe/src/lib.rs | 61 | //! # #[cfg(target_arch = "wasm32")] | COMMENT |
| LOW | crates/eframe/src/lib.rs | 81 | //! } | COMMENT |
| LOW | crates/eframe/src/lib.rs | 101 | //! } | COMMENT |
| LOW | crates/eframe/src/lib.rs | 121 | //! | COMMENT |
| LOW | crates/eframe/src/lib.rs | 241 | /// This is how you start a native (desktop) app. | COMMENT |
| LOW | crates/eframe/src/lib.rs | 261 | /// #[derive(Default)] | COMMENT |
| LOW | crates/eframe/src/lib.rs | 281 | /// ``` | COMMENT |
| LOW | crates/eframe/src/lib.rs | 321 | #[cfg(feature = "wgpu_no_default_features")] | COMMENT |
| LOW | crates/eframe/src/lib.rs | 341 | /// eventloop.set_control_flow(ControlFlow::Poll); | COMMENT |
| LOW | crates/eframe/src/lib.rs | 361 | /// } | COMMENT |
| LOW | crates/eframe/src/lib.rs | 441 | /// The simplest way to get started when writing a native app. | COMMENT |
| LOW | crates/eframe/src/lib.rs | 461 | /// ui.text_edit_singleline(&mut name) | COMMENT |
| LOW | crates/eframe/src/icon_data.rs | 1 | //! Helpers for loading [`egui::IconData`]. | COMMENT |
| LOW | crates/eframe/src/epi.rs | 21 | #[cfg(not(target_arch = "wasm32"))] | COMMENT |
| LOW | crates/eframe/src/epi.rs | 61 | pub integration_info: IntegrationInfo, | COMMENT |
| LOW | crates/eframe/src/epi.rs | 81 | /// | COMMENT |
| LOW | crates/eframe/src/epi.rs | 141 | /// | COMMENT |
| LOW | crates/eframe/src/epi.rs | 161 | /// [`egui::InputState::viewport`], but the rest of [`egui::Context::input`] | COMMENT |
| LOW | crates/eframe/src/epi.rs | 181 | /// | COMMENT |
| LOW | crates/eframe/src/epi.rs | 201 | /// ``` | COMMENT |
| LOW | crates/eframe/src/epi.rs | 221 | /// | COMMENT |
| LOW | crates/eframe/src/epi.rs | 241 | /// Background color values for the app, e.g. what is sent to `gl.clearColor`. | COMMENT |
| LOW | crates/eframe/src/epi.rs | 261 | /// persisted (only if the "persistence" feature is enabled). | COMMENT |
| LOW | crates/eframe/src/epi.rs | 281 | /// This function does not return a value. Any changes to the input should be made directly to `_raw_input`. | COMMENT |
| LOW | crates/eframe/src/epi.rs | 301 | /// | COMMENT |
| LOW | crates/eframe/src/epi.rs | 321 | /// `egui` doesn't need the depth buffer, so the default value is 0. | COMMENT |
| LOW | crates/eframe/src/epi.rs | 341 | /// This feature was introduced in <https://github.com/emilk/egui/pull/1889>. | COMMENT |
| LOW | crates/eframe/src/epi.rs | 361 | /// Note: A [`NativeOptions`] clone will not include any `window_builder` hook. | COMMENT |
| LOW | crates/eframe/src/epi.rs | 381 | /// persisted (only if the "persistence" feature is enabled). | COMMENT |
| LOW | crates/eframe/src/epi.rs | 401 | /// This means that only inputs from texture interpolation and vertex colors should be affected in practice. | COMMENT |
| LOW | crates/eframe/src/epi.rs | 421 | /// | COMMENT |
| LOW | crates/eframe/src/epi.rs | 521 | /// `egui` doesn't need the depth buffer, so the default value is 0. | COMMENT |
| LOW | crates/eframe/src/epi.rs | 541 | /// Dithering assumes an sRGB output and thus will apply noise to any input value that lies between | COMMENT |
| LOW | crates/eframe/src/epi.rs | 701 | pub(crate) storage: Option<Box<dyn Storage>>, | COMMENT |
| LOW | crates/eframe/src/epi.rs | 721 | /// eframe pushes this into the painter once per frame, before painting. | COMMENT |
| LOW | crates/eframe/src/epi.rs | 821 | } | COMMENT |
| LOW | crates/eframe/src/epi.rs | 861 | let _ = (self, egui_ctx, title_bar_y, left_margin); | COMMENT |
| LOW | crates/eframe/src/epi.rs | 901 | /// | COMMENT |
| LOW | crates/eframe/src/epi.rs | 921 | /// and run eframe using [`Renderer::Glow`]. | COMMENT |
| LOW | crates/eframe/src/epi.rs | 941 | /// Can be used to manage GPU resources for custom rendering with WGPU using [`egui::PaintCallback`]s. | COMMENT |
| LOW | crates/eframe/src/epi.rs | 981 | } | COMMENT |
| LOW | crates/eframe/src/epi.rs | 1001 | /// Example: `"example.com:80"`. | COMMENT |
| LOW | crates/eframe/src/epi.rs | 1021 | /// | COMMENT |
| LOW | crates/eframe/src/native/app_icon.rs | 41 | /// We did not set it or failed to do it. In any case we won't try again. | COMMENT |
| LOW | crates/eframe/src/native/winit_integration.rs | 161 | /// Causes a save of the client state when the persistence feature is enabled. | COMMENT |
| LOW | crates/eframe/src/native/run.rs | 21 | /// Minimum interval between repaints for invisible windows. | COMMENT |
| LOW | crates/eframe/src/native/wgpu_integration.rs | 941 | // See: https://github.com/emilk/egui/issues/903 | COMMENT |
| LOW | crates/eframe/src/native/glow_integration.rs | 81 | } | COMMENT |
| LOW | crates/eframe/src/native/glow_integration.rs | 981 | &mut self, | COMMENT |
| LOW | crates/eframe/src/web/web_painter.rs | 1 | use egui::ScreenshotCallback; | COMMENT |
| LOW | crates/eframe/src/web/canvas_glyphs.rs | 201 | width, | COMMENT |
| 736 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | clippy.toml | 3 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | clippy.toml | 22 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | clippy.toml | 60 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | crates/eframe/Cargo.toml | 166 | # ------------------------------------------- | COMMENT |
| MEDIUM | crates/eframe/Cargo.toml | 222 | # ------------------------------------------- | COMMENT |
| MEDIUM⚡ | crates/emath/src/rect_align.rs | 10 | /// ┌───────────┐ ┌────────┐ ┌─────────┐ | COMMENT |
| MEDIUM⚡ | crates/emath/src/rect_align.rs | 12 | /// └───────────┘ └────────┘ └─────────┘ | COMMENT |
| MEDIUM⚡ | crates/emath/src/rect_align.rs | 13 | /// ┌──────────┐ ┌────────────────────────────────────┐ ┌───────────┐ | COMMENT |
| MEDIUM⚡ | crates/emath/src/rect_align.rs | 15 | /// └──────────┘ │ │ └───────────┘ | COMMENT |
| MEDIUM⚡ | crates/emath/src/rect_align.rs | 16 | /// ┌──────────┐ │ │ ┌───────────┐ | COMMENT |
| MEDIUM⚡ | crates/emath/src/rect_align.rs | 18 | /// └──────────┘ │ │ └───────────┘ | COMMENT |
| MEDIUM⚡ | crates/emath/src/rect_align.rs | 19 | /// ┌──────────┐ │ │ ┌───────────┐ | COMMENT |
| MEDIUM⚡ | crates/emath/src/rect_align.rs | 21 | /// └──────────┘ └────────────────────────────────────┘ └───────────┘ | COMMENT |
| MEDIUM⚡ | crates/emath/src/rect_align.rs | 22 | /// ┌────────────┐ ┌──────┐ ┌──────────┐ | COMMENT |
| MEDIUM⚡ | crates/emath/src/rect_align.rs | 24 | /// └────────────┘ └──────┘ └──────────┘ | COMMENT |
| MEDIUM | scripts/check.sh | 82 | # ------------------------------------------------------------ | COMMENT |
| MEDIUM | scripts/clippy_wasm/clippy.toml | 6 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | scripts/clippy_wasm/clippy.toml | 25 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/rust.yml | 75 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/rust.yml | 142 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/rust.yml | 174 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/rust.yml | 199 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/rust.yml | 223 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .github/workflows/rust.yml | 245 | # --------------------------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | crates/eframe/src/native/glow_integration.rs | 1220 | // Create GL display. This may probably create a window too on most platforms. Definitely on `MS windows`. Never | COMMENT |
| MEDIUM | crates/egui_kittest/src/lib.rs | 990 | /// See also: <https://doc.rust-lang.org/cargo/reference/cargo-targets.html#the-harness-field> | COMMENT |
| MEDIUM | crates/egui_kittest/src/lib.rs | 1024 | See: https://doc.rust-lang.org/cargo/reference/cargo-targets.html#the-harness-field" | CODE |
| MEDIUM | crates/egui_kittest/src/snapshot.rs | 854 | /// # let harness = MockHarness; | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | crates/egui_demo_lib/src/lib.rs | 59 | pub const LOREM_IPSUM: &str = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt | CODE |
| LOW⚡ | crates/egui_demo_lib/src/lib.rs | 59 | pub const LOREM_IPSUM: &str = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt | CODE |
| LOW⚡ | crates/egui_demo_lib/src/lib.rs | 61 | pub const LOREM_IPSUM_LONG: &str = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incid | CODE |
| LOW⚡ | crates/egui_demo_lib/src/lib.rs | 61 | pub const LOREM_IPSUM_LONG: &str = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incid | CODE |
| LOW | crates/egui_demo_lib/src/demo/text_layout.rs | 133 | ui.selectable_value(lorem_ipsum, true, "Lorem Ipsum"); | CODE |
| LOW | crates/egui_demo_lib/src/demo/modals.rs | 21 | name: "John Doe".to_owned(), | CODE |
| LOW | examples/custom_font_style/src/main.rs | 73 | pub const LOREM_IPSUM: &str = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt | CODE |
| LOW | examples/custom_font_style/src/main.rs | 73 | pub const LOREM_IPSUM: &str = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | scripts/accept_snapshots.sh | 3 | # Its main use is in the update_kittest_snapshots CI job, but you can also use it locally. | COMMENT |
| MEDIUM | scripts/build_demo_web.sh | 99 | # if this fails with "error: cannot import from modules (`env`) with `--no-modules`", you can use: | COMMENT |
| LOW | .vscode/settings.json | 24 | // Don't forget to put it in a comment again before committing. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/generate_changelog.py | 136 | CODE | |
| LOW | scripts/generate_changelog.py | 244 | CODE | |
| LOW | scripts/lint.py | 150 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .github/workflows/enforce_branch_name.yml | 20 | # Check if PR is from a fork | COMMENT |
| LOW | .github/workflows/enforce_branch_name.yml | 22 | # Check if PR is from the master/main branch of a fork | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/egui_kittest/src/snapshot.rs | 61 | /// Example usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/generate_changelog.py | 49 | def fetch_pr_info_from_commit_info(commit_info: CommitInfo) -> Optional[PrInfo]: | CODE |