Update Rust crate egui to 0.33.2 #378

Merged
renovate merged 1 commits from renovate/egui-0.x into master 2025-12-01 00:19:03 +00:00
Collaborator

This PR contains the following updates:

Package Type Update Change
egui dependencies minor 0.32.3 -> 0.33.2

Release Notes

emilk/egui (egui)

v0.33.2

Compare Source

Added
🔧 Changed
🐛 Fixed

v0.33.0

Compare Source

Highlights from this release:

  • egui::Plugin a improved way to create and access egui plugins
  • kitdiff, a viewer for egui_kittest image snapshots (and a general image diff tool)
  • better kerning
Improved kerning

As a step towards using parley for font rendering, @​valadaptive has refactored the font loading and rendering code. A result of this (next to the font rendering code being much nicer now) is improved kerning.
Notice how the c moved away from the k:

Oct-09-2025 16-21-58

egui::Plugin trait

We've added a new trait-based plugin api, meant to replace Context::on_begin_pass and Context::on_end_pass.
This makes it a lot easier to handle state in your plugins. Instead of having to write to egui memory it can live right on your plugin struct.
The trait based api also makes easier to add new hooks that plugins can use. In addition to on_begin_pass and on_end_pass, the Plugin trait now has a input_hook and output_hook which you can use to inspect / modify the RawInput / FullOutput.

kitdiff, a image diff viewer

At rerun we have a ton of snapshots. Some PRs will change most of them (e.g. the one that updated egui and introduced the kerning improvements, ~500 snapshots changed!).
If you really want to look at every changed snapshot it better be as efficient as possible, and the experience on github, fiddeling with the sliders, is kind of frustrating.
In order to fix this, we've made kitdiff.
You can use it locally via

  • kitdiff files . will search for .new.png and .diff.png files
  • kitdiff git will compare the current files to the default branch (main/master)
    Or in the browser via
  • going to https://rerun-io.github.io/kitdiff/ and pasting a PR or github artifact url
  • linking to kitdiff via e.g. a github workflow https://rerun-io.github.io/kitdiff/?url=<link_to_pr_or_artifact>

To install kitdiff run cargo install --git https://github.com/rerun-io/kitdiff

Here is a video showing the kerning changes in kitdiff (try it yourself):

https://github.com/user-attachments/assets/74640af1-09ba-435a-9d0c-2cbeee140c8f

Migration guide
  • egui::Mutex now has a timeout as a simple deadlock detection
    • If you use a egui::Mutex in some place where it's held for longer than a single frame, you should switch to the std mutex or parking_lot instead (egui mutexes are wrappers around parking lot)
  • screen_rect is deprecated
    • In order to support safe areas, egui now has viewport_rect and content_rect.
    • Update all usages of screen_rect to content_rect, unless you are sure that you want to draw outside the safe area (which would mean your Ui may be covered by notches, system ui, etc.)
Added
🔧 Changed
🔥 Removed
🐛 Fixed

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [egui](https://github.com/emilk/egui) | dependencies | minor | `0.32.3` -> `0.33.2` | --- ### Release Notes <details> <summary>emilk/egui (egui)</summary> ### [`v0.33.2`](https://github.com/emilk/egui/blob/HEAD/CHANGELOG.md#0332---2025-11-13) [Compare Source](https://github.com/emilk/egui/compare/0.33.0...0.33.2) ##### ⭐ Added - Add `Plugin::on_widget_under_pointer` to support widget inspector [#&#8203;7652](https://github.com/emilk/egui/pull/7652) by [@&#8203;juancampa](https://github.com/juancampa) - Add `Response::total_drag_delta` and `PointerState::total_drag_delta` [#&#8203;7708](https://github.com/emilk/egui/pull/7708) by [@&#8203;emilk](https://github.com/emilk) ##### 🔧 Changed - Improve accessibility and testability of `ComboBox` [#&#8203;7658](https://github.com/emilk/egui/pull/7658) by [@&#8203;lucasmerlin](https://github.com/lucasmerlin) ##### 🐛 Fixed - Fix `profiling::scope` compile error when profiling using `tracing` backend [#&#8203;7646](https://github.com/emilk/egui/pull/7646) by [@&#8203;PPakalns](https://github.com/PPakalns) - Fix edge cases in "smart aiming" in sliders [#&#8203;7680](https://github.com/emilk/egui/pull/7680) by [@&#8203;emilk](https://github.com/emilk) - Hide scroll bars when dragging other things [#&#8203;7689](https://github.com/emilk/egui/pull/7689) by [@&#8203;emilk](https://github.com/emilk) - Prevent widgets sometimes appearing to move relative to each other [#&#8203;7710](https://github.com/emilk/egui/pull/7710) by [@&#8203;emilk](https://github.com/emilk) - Fix `ui.response().interact(Sense::click())` being flakey [#&#8203;7713](https://github.com/emilk/egui/pull/7713) by [@&#8203;lucasmerlin](https://github.com/lucasmerlin) ### [`v0.33.0`](https://github.com/emilk/egui/blob/HEAD/CHANGELOG.md#0330---2025-10-09---eguiPlugin-better-kerning-kitdiff-viewer) [Compare Source](https://github.com/emilk/egui/compare/0.32.3...0.33.0) Highlights from this release: - `egui::Plugin` a improved way to create and access egui plugins - [kitdiff](https://github.com/rerun-io/kitdiff), a viewer for egui\_kittest image snapshots (and a general image diff tool) - better kerning ##### Improved kerning As a step towards using [parley](https://github.com/linebender/parley) for font rendering, [@&#8203;valadaptive](https://github.com/valadaptive) has refactored the font loading and rendering code. A result of this (next to the font rendering code being much nicer now) is improved kerning. Notice how the c moved away from the k: ![Oct-09-2025 16-21-58](https://github.com/user-attachments/assets/d4a17e87-5e98-40db-a85a-fa77fa77aceb) ##### `egui::Plugin` trait We've added a new trait-based plugin api, meant to replace `Context::on_begin_pass` and `Context::on_end_pass`. This makes it a lot easier to handle state in your plugins. Instead of having to write to egui memory it can live right on your plugin struct. The trait based api also makes easier to add new hooks that plugins can use. In addition to `on_begin_pass` and `on_end_pass`, the `Plugin` trait now has a `input_hook` and `output_hook` which you can use to inspect / modify the `RawInput` / `FullOutput`. ##### kitdiff, a image diff viewer At rerun we have a ton of snapshots. Some PRs will change most of them (e.g. [the](https://github.com/rerun-io/rerun/pull/11253/files) [one](https://rerun-io.github.io/kitdiff/?url=https://github.com/rerun-io/rerun/pull/11253/files) that updated egui and introduced the kerning improvements, \~500 snapshots changed!). If you really want to look at every changed snapshot it better be as efficient as possible, and the experience on github, fiddeling with the sliders, is kind of frustrating. In order to fix this, we've made [kitdiff](https://rerun-io.github.io/kitdiff/). You can use it locally via - `kitdiff files .` will search for .new\.png and .diff.png files - `kitdiff git` will compare the current files to the default branch (main/master) Or in the browser via - going to <https://rerun-io.github.io/kitdiff/> and pasting a PR or github artifact url - linking to kitdiff via e.g. a github workflow `https://rerun-io.github.io/kitdiff/?url=<link_to_pr_or_artifact>` To install kitdiff run `cargo install --git https://github.com/rerun-io/kitdiff` Here is a video showing the kerning changes in kitdiff ([try it yourself](https://rerun-io.github.io/kitdiff/?url=https://github.com/rerun-io/rerun/pull/11253/files)): <https://github.com/user-attachments/assets/74640af1-09ba-435a-9d0c-2cbeee140c8f> ##### Migration guide - `egui::Mutex` now has a timeout as a simple deadlock detection - If you use a `egui::Mutex` in some place where it's held for longer than a single frame, you should switch to the std mutex or parking\_lot instead (egui mutexes are wrappers around parking lot) - `screen_rect` is deprecated - In order to support safe areas, egui now has `viewport_rect` and `content_rect`. - Update all usages of `screen_rect` to `content_rect`, unless you are sure that you want to draw outside the `safe area` (which would mean your Ui may be covered by notches, system ui, etc.) ##### ⭐ Added - New Plugin trait [#&#8203;7385](https://github.com/emilk/egui/pull/7385) by [@&#8203;lucasmerlin](https://github.com/lucasmerlin) - Add `Ui::take_available_space()` helper function, which sets the Ui's minimum size to the available space [#&#8203;7573](https://github.com/emilk/egui/pull/7573) by [@&#8203;IsseW](https://github.com/IsseW) - Add support for the safe area on iOS [#&#8203;7578](https://github.com/emilk/egui/pull/7578) by [@&#8203;irh](https://github.com/irh) - Add `UiBuilder::global_scope` and `UiBuilder::id` [#&#8203;7372](https://github.com/emilk/egui/pull/7372) by [@&#8203;Icekey](https://github.com/Icekey) - Add `emath::fast_midpoint` [#&#8203;7435](https://github.com/emilk/egui/pull/7435) by [@&#8203;emilk](https://github.com/emilk) - Make the `hex_color` macro `const` [#&#8203;7444](https://github.com/emilk/egui/pull/7444) by [@&#8203;YgorSouza](https://github.com/YgorSouza) - Add `SurrenderFocusOn` option [#&#8203;7471](https://github.com/emilk/egui/pull/7471) by [@&#8203;lucasmerlin](https://github.com/lucasmerlin) - Add `Memory::move_focus` [#&#8203;7476](https://github.com/emilk/egui/pull/7476) by [@&#8203;darkwater](https://github.com/darkwater) - Support on hover tooltip that is noninteractable even with interactable content [#&#8203;5543](https://github.com/emilk/egui/pull/5543) by [@&#8203;PPakalns](https://github.com/PPakalns) - Add rotation gesture support for trackpad sources [#&#8203;7453](https://github.com/emilk/egui/pull/7453) by [@&#8203;thatcomputerguy0101](https://github.com/thatcomputerguy0101) ##### 🔧 Changed - Document platform compatibility on `viewport::WindowLevel` and dependents [#&#8203;7432](https://github.com/emilk/egui/pull/7432) by [@&#8203;lkdm](https://github.com/lkdm) - Deprecated `ImageButton` and removed `WidgetType::ImageButton` [#&#8203;7483](https://github.com/emilk/egui/pull/7483) by [@&#8203;Stelios-Kourlis](https://github.com/Stelios-Kourlis) - More even text kerning [#&#8203;7431](https://github.com/emilk/egui/pull/7431) by [@&#8203;valadaptive](https://github.com/valadaptive) - Increase default text size from 12.5 to 13.0 [#&#8203;7521](https://github.com/emilk/egui/pull/7521) by [@&#8203;emilk](https://github.com/emilk) - Update accesskit to 0.21.0 [#&#8203;7550](https://github.com/emilk/egui/pull/7550) by [@&#8203;fundon](https://github.com/fundon) - Update MSRV from 1.86 to 1.88 [#&#8203;7579](https://github.com/emilk/egui/pull/7579) by [@&#8203;Wumpf](https://github.com/Wumpf) - Group AccessKit nodes by `Ui` [#&#8203;7386](https://github.com/emilk/egui/pull/7386) by [@&#8203;lucasmerlin](https://github.com/lucasmerlin) ##### 🔥 Removed - Remove the `deadlock_detection` feature [#&#8203;7497](https://github.com/emilk/egui/pull/7497) by [@&#8203;lucasmerlin](https://github.com/lucasmerlin) - Remove deprecated fields from `PlatformOutput` [#&#8203;7523](https://github.com/emilk/egui/pull/7523) by [@&#8203;emilk](https://github.com/emilk) - Remove `log` feature [#&#8203;7583](https://github.com/emilk/egui/pull/7583) by [@&#8203;emilk](https://github.com/emilk) ##### 🐛 Fixed - Enable `clippy::iter_over_hash_type` lint [#&#8203;7421](https://github.com/emilk/egui/pull/7421) by [@&#8203;emilk](https://github.com/emilk) - Fixes sense issues in TextEdit when vertical alignment is used [#&#8203;7436](https://github.com/emilk/egui/pull/7436) by [@&#8203;RndUsr123](https://github.com/RndUsr123) - Fix stuck menu when submenu vanishes [#&#8203;7589](https://github.com/emilk/egui/pull/7589) by [@&#8203;lucasmerlin](https://github.com/lucasmerlin) - Change Spinner widget to account for width as well as height [#&#8203;7560](https://github.com/emilk/egui/pull/7560) by [@&#8203;bryceberger](https://github.com/bryceberger) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi4yNy4wIiwidXBkYXRlZEluVmVyIjoiNDIuMjcuMCIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119-->
renovate added 1 commit 2025-12-01 00:19:00 +00:00
Update Rust crate egui to 0.33.2
Some checks failed
renovate/artifacts Artifact file update failure
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
7b7a4a7144
renovate scheduled this pull request to auto merge when all checks succeed 2025-12-01 00:19:01 +00:00
Author
Collaborator

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: custom_consumption/Cargo.lock
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path custom_consumption/Cargo.toml --package egui@0.32.3 --precise 0.33.2
    Updating crates.io index
error: failed to select a version for the requirement `egui = "^0.32.3"`
candidate versions found which didn't match: 0.33.2
location searched: crates.io index
required by package `eframe v0.32.3`
    ... which satisfies dependency `eframe = "^0.32.3"` of package `custom_consumption v0.1.0 (/tmp/renovate/repos/gitea/pierre/SolarEnergy/custom_consumption)`

### ⚠️ Artifact update problem Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is. ♻ Renovate will retry this branch, including artifacts, only when one of the following happens: - any of the package files in this branch needs updating, or - the branch becomes conflicted, or - you click the rebase/retry checkbox if found above, or - you rename this PR's title to start with "rebase!" to trigger it manually The artifact failure details are included below: ##### File name: custom_consumption/Cargo.lock ``` Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path custom_consumption/Cargo.toml --package egui@0.32.3 --precise 0.33.2 Updating crates.io index error: failed to select a version for the requirement `egui = "^0.32.3"` candidate versions found which didn't match: 0.33.2 location searched: crates.io index required by package `eframe v0.32.3` ... which satisfies dependency `eframe = "^0.32.3"` of package `custom_consumption v0.1.0 (/tmp/renovate/repos/gitea/pierre/SolarEnergy/custom_consumption)` ```
renovate merged commit 9f8158357e into master 2025-12-01 00:19:03 +00:00
renovate deleted branch renovate/egui-0.x 2025-12-01 00:19:03 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: pierre/SolarEnergy#378