Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update rust crate egui to 0.31 #830

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 17, 2024

This PR contains the following updates:

Package Type Update Change
egui dependencies minor 0.29 -> 0.31

Release Notes

emilk/egui (egui)

v0.31.0

Compare Source

Highlights ✨
Scene container

This release adds the Scene container to egui. It is a pannable, zoomable canvas that can contain Widgets and child Uis.
This will make it easier to e.g. implement a graph editor.

scene

Clearer, pixel perfect rendering

The tessellator has been updated for improved rendering quality and better performance. It will produce fewer vertices
and shapes will have less overdraw. We've also defined what CornerRadius (previously Rounding) means.

We've also added a tessellator test to the demo app, where you can play around with different
values to see what's produced:

tessellator-test.mp4

Check the PR for more details.

CornerRadius, Margin, Shadow size reduction

In order to pave the path for more complex and customizable styling solutions, we've reduced the size of
CornerRadius, Margin and Shadow values to i8 and u8.

Migration guide
  • Add a StrokeKind to all your Painter::rect calls #​5648
  • StrokeKind::default was removed, since the 'normal' value depends on the context #​5658
    • You probably want to use StrokeKind::Inside when drawing rectangles
    • You probably want to use StrokeKind::Middle when drawing open paths
  • Rename Rounding to CornerRadius #​5673
  • CornerRadius, Margin and Shadow have been updated to use i8 and u8 #​5563, #​5567, #​5568
    • Remove the .0 from your values
    • Cast dynamic values with as i8 / as u8 or as _ if you want Rust to infer the type
      • Rust will do a 'saturating' cast, so if your f32 value is bigger than 127 it will be clamped to 127
  • RectShape parameters changed #​5565
    • Prefer to use the builder methods to create it instead of initializing it directly
  • Frame now takes the Stroke width into account for its sizing, so check all views of your app to make sure they still look right.
    Read the PR for more info.
⭐ Added
🔧 Changed
🔥 Removed
🐛 Fixed
🚀 Performance

v0.30.0

Compare Source

✨ Highlights
egui_kittest

This release welcomes a new crate to the family: egui_kittest.
egui_kittest is a testing framework for egui, allowing you to test both automation (simulated clicks and other events),
and also do screenshot testing (useful for regression tests).
egui_kittest is built using kittest, which is a general GUI testing framework that aims to work with any Rust GUI (not just egui!).
kittest uses the accessibility library AccessKit for automatation and to query the widget tree.

kittest and egui_kittest are written by @​lucasmerlin.

Here's a quick example of how to use egui_kittest to test a checkbox:

use egui::accesskit::Toggled;
use egui_kittest::{Harness, kittest::Queryable};

fn main() {
    let mut checked = false;
    let app = |ui: &mut egui::Ui| {
        ui.checkbox(&mut checked, "Check me!");
    };

    let mut harness = egui_kittest::Harness::new_ui(app);

    let checkbox = harness.get_by_label("Check me!");
    assert_eq!(checkbox.toggled(), Some(Toggled::False));
    checkbox.click();

    harness.run();

    let checkbox = harness.get_by_label("Check me!");
    assert_eq!(checkbox.toggled(), Some(Toggled::True));

    // You can even render the ui and do image snapshot tests
    #[cfg(all(feature = "wgpu", feature = "snapshot"))]
    harness.wgpu_snapshot("readme_example");
}
⭐ Added
🔧 Changed
🐛 Fixed

Configuration

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

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

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 was generated by Mend Renovate. View the repository job log.

Copy link
Contributor Author

renovate bot commented Dec 17, 2024

⚠️ 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: Cargo.lock
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path crates/runtime/debug-ui/egui/Cargo.toml --package [email protected] --precise 0.31.0
    Updating crates.io index
error: failed to select a version for the requirement `egui = "^0.29.1"`
candidate versions found which didn't match: 0.31.0
location searched: crates.io index
required by package `egui-wgpu v0.29.1`
    ... which satisfies dependency `egui-wgpu = "^0.29"` (locked to 0.29.1) of package `mizer-debug-ui-egui v0.1.0 (/tmp/renovate/repos/github/maxjoehnk/Mizer/crates/runtime/debug-ui/egui)`
    ... which satisfies path dependency `mizer-debug-ui-egui` (locked to 0.1.0) of package `mizer-debug-ui-impl v0.1.0 (/tmp/renovate/repos/github/maxjoehnk/Mizer/crates/runtime/debug-ui/impl)`
    ... which satisfies path dependency `mizer-debug-ui-impl` (locked to 0.1.0) of package `mizer-runtime v0.1.0 (/tmp/renovate/repos/github/maxjoehnk/Mizer/crates/runtime)`
    ... which satisfies path dependency `mizer-runtime` (locked to 0.1.0) of package `mizer-api v0.1.0 (/tmp/renovate/repos/github/maxjoehnk/Mizer/crates/api)`

@renovate renovate bot force-pushed the renovate/egui-0.x branch 13 times, most recently from b6cd9e5 to 952a281 Compare December 28, 2024 16:06
@renovate renovate bot force-pushed the renovate/egui-0.x branch from 952a281 to 8ae5717 Compare February 4, 2025 17:19
@renovate renovate bot changed the title fix(deps): update rust crate egui to 0.30 fix(deps): update rust crate egui to 0.31 Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants