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.30 #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.30

Release Notes

emilk/egui (egui)

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 egui@0.29.1 --precise 0.30.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.30.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 12 times, most recently from 7e69e13 to b6cd9e5 Compare December 28, 2024 12:33
@renovate renovate bot force-pushed the renovate/egui-0.x branch from b6cd9e5 to 952a281 Compare December 28, 2024 16:06
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