Skip to content

fix(deps): update rust crate eframe to 0.31.0 #3

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

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 23, 2023

This PR contains the following updates:

Package Type Update Change
eframe (source) dependencies minor 0.21.3 -> 0.31.0

Release Notes

emilk/egui (eframe)

v0.31.0

Compare Source

v0.30.0

Compare Source

NOTE: you now need to enable the wayland or x11 features to get Linux support, including getting it to work on most CI systems.

⭐ Added
🔧 Changed
🐛 Fixed

v0.29.1

Compare Source

v0.29.0

Compare Source

✨ Highlights
🧳 Migration
  • WebRunner::start now expects a HtmlCanvasElement rather than the id of it (#​4780)
  • NativeOptions::follow_system_theme and default_theme is gone, and is now in egui::Options instead (#​4860 by @​bash)
⭐ Added
🔧 Changed
🐛 Fixed

v0.28.1

Compare Source

v0.28.0

Compare Source

✨ Highlights

The eframe web canvas now works properly when its a small part of a larger web page.
Previously this caused a lot of weird bugs, such as the eframe canvas stealing focus, and resizing the canvas in annoying ways.
Now it should all work seamlessly to have an eframe canvas as part of a web page, including having multiple different eframe apps next to each other.
As part of that the eframe canvas can now be focused (or not), just like an <input> HTML element.

We've also implemented a better method for sizing and positioning the canvas so that it yields pixel-perfect rendering on all known browsers except for Desktop Safari.
What this means is that text is much less likely to be blurry on web for users (#​4536 by @​jprochazk).

⭐ Added
🔧 Changed
🐛 Fixed
🧳 Migration
Wrap app creator in a Result

Applications can now return an error during the app creation (#​4565 by @​emilk), so you now need to wrap your Box<dyn App> in a Result like so:

- eframe::run_native("My App", options, Box::new(|cc| Box::new(MyApp::new(cc))));
+ eframe::run_native("My App", options, Box::new(|cc| Ok(Box::new(MyApp::new(cc)))));
Change web CSS

To make the eframe canvas fill the entire web browser, set its CSS to:

top: 0;
left: 0;
width: 100%;
height: 100%;

See index.html and #​4536 for details.

Web canvas focus

If you are using eframe for a fullscreen app, you should call .focus() on your canvas during startup:

document.getElementById("the_canvas_id").focus();

v0.27.2

Compare Source

Desktop/Native
  • Fix continuous repaint on Wayland when TextEdit is focused or IME output is set #​4269 (thanks @​white-axe!)
  • Remove a bunch of unwrap() #​4285
Web
  • Fix blurry rendering in some browsers #​4299
  • Correctly identify if the browser tab has focus #​4280

v0.27.1

Compare Source

v0.27.0

Compare Source

  • Update to document-features 0.2.8 #​4003
  • Added App::raw_input_hook allows for the manipulation or filtering of raw input events #​4008 (thanks @​varphone!)
Desktop/Native
Web

v0.26.2

Compare Source

v0.26.1

Compare Source

v0.26.0

Compare Source

Desktop/Native
Web
  • When using wgpu on web, eframe will try to use WebGPU if available, then fall back to WebGL #​3824 #​3895 (thanks @​Wumpf!)

v0.25.0

Compare Source

  • If both glow and wgpu features are enabled, default to wgpu #​3717
Desktop/Native
Web
  • Fix building the wasm32 docs for docs.rs #​3757

v0.24.1

Compare Source

Desktop/Native
  • Fix window flashing white on launch #​3631 (thanks @​zeozeozeo!)
  • Fix windowing problems when using the x11 feature on Linux #​3643
  • Fix bugs when there are multiple monitors with different scales #​3663
  • glow backend: clear framebuffer color before calling App::update #​3665
Web
  • Fix click-to-copy on Safari #​3621
  • Don't throw away frames on click/copy/cut #​3623
  • Remove dependency on tts #​3651

v0.24.0

Compare Source

Breaking changes:

Most settings in NativeOptions have been moved to NativeOptions::viewport, which uses the new egui::ViewportBuilder:

 let native_options = eframe::nativeOptions {
-    initial_window_size: Some(egui::vec2(320.0, 240.0)),
-    drag_and_drop_support: true,
+    viewport: egui::ViewportBuilder::default()
+        .with_inner_size([320.0, 240.0])
+        .with_drag_and_drop(true),
     ..Default::default()
 };

NativeOptions::fullsize_content has been replaced with four settings: ViewportBuilder::with_fullsize_content_view, with_title_shown, with_titlebar_shown, with_titlebar_buttons_shown

frame.info().window_info is gone, replaced with ctx.input(|i| i.viewport()).

frame.info().native_pixels_per_point is replaced with ctx.input(|i| i.raw.native_pixels_per_point).

Most commands in eframe::Frame has been replaced with egui::ViewportCommand, so So frame.close() becomes ctx.send_viewport_cmd(ViewportCommand::Close), etc.

App::on_close_event has been replaced with ctx.input(|i| i.viewport().close_requested()) and ctx.send_viewport_cmd(ViewportCommand::CancelClose).

eframe::IconData is now egui::IconData.

eframe::IconData::try_from_png_bytes is now eframe::icon_data::from_png_bytes.

App::post_rendering is gone. Screenshots are taken with ctx.send_viewport_cmd(ViewportCommand::Screenshots) and are returned in egui::Event which you can check with:

ui.input(|i| {
    for event in &i.raw.events {
        if let egui::Event::Screenshot { viewport_id, image } = event {
            // handle it here
        }
    }
});

v0.23.0

Compare Source

Desktop/Native
Web
  • Update to wasm-bindgen 0.2.87 #​3237
  • Remove Function() invocation from eframe text_agent to bypass "unsafe-eval" restrictions in Chrome browser extensions. #​3349 (thanks @​aspect!)
  • Fix docs about web #​3026 (thanks @​kerryeon!)

v0.22.0

Compare Source

  • Fix: request_repaint_after works even when called from background thread #​2939
  • Clear all keys and modifies on focus change #​2857 #​2933
  • Remove dark-light dependency #​2929
  • Replace tracing with log #​2928
  • Update accesskit to 0.11 #​3012
Desktop/Native
  • Automatically change theme when system dark/light mode changes #​2750 (thanks @​bash!)
  • Enabled wayland feature for winit when running native #​2751 (thanks @​ItsEthra!)
  • Fix eframe window position bug (pixels vs points) #​2763 (thanks @​get200!)
  • Add Frame::request_screenshot and Frame::screenshot to communicate to the backend that a screenshot of the current frame should be exposed by Frame during App::post_rendering (#​2676).
  • Add eframe::run_simple_native * a simple API for simple apps (#​2453).
  • Add NativeOptions::app_id which allows to set the Wayland application ID under Linux (#​1600).
  • Add NativeOptions::active #​2813 (thanks @​Dixeran!)
  • Remove android-activity dependency + add Activity backend features #​2863 (thanks @​rib!)
  • Fix bug where the eframe window is never destroyed on Linux when using run_and_return (#​2892)
  • Fix state persisting when exiting on Linux #​2895 (thanks @​flukejones!)
  • Allow for requesting the user's attention to the window #​2905 (thanks @​TicClick!)
  • Read and request window focus #​2900 (thanks @​TicClick!)
  • Set app icon on Mac and Windows #​2940
  • Set a default icon for all eframe apps: a white e on black background #​2996
  • Add NativeOptions::app_id for the persistence location #​3014 and for Wayland #​3007 (thanks @​thomaskrause!)
  • capture a screenshot using Frame::request_screenshot 870264b
Web
  • ⚠️ BREAKING: eframe::start_web has been replaced with eframe::WebRunner, which also installs a nice panic hook (no need for console_error_panic_hook).
  • ⚠️ BREAKING: WebGPU is now the default web renderer when using the wgpu feature of eframe. To use WebGL with wgpu, you need to add wgpu = { version = "0.16.0", features = ["webgl"] } to your own Cargo.toml. (#​2945)
  • Add eframe::WebLogger for redirecting log calls to the web console (console.log).
  • Prefer the client width/height for the canvas parent #​2804 (thanks @​samitbasu!)
  • eframe web: Persist app state to local storage when leaving site #​2927
  • Better panic handling #​2942 #​2992
  • Update wasm-bindgen to 0.2.86 #​2995
  • Properly unsubscribe from events on destroy 4d360f6

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 becomes conflicted, 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.

@renovate renovate bot force-pushed the renovate/eframe-0.x branch from 91e8721 to ea3d865 Compare July 26, 2023 06:44
@renovate renovate bot changed the title fix(deps): update rust crate eframe to 0.22.0 fix(deps): update rust crate eframe to 0.23.0 Sep 28, 2023
@renovate renovate bot force-pushed the renovate/eframe-0.x branch from ea3d865 to 84521ea Compare September 28, 2023 07:48
@renovate renovate bot changed the title fix(deps): update rust crate eframe to 0.23.0 fix(deps): update rust crate eframe to 0.24.0 Nov 23, 2023
@renovate renovate bot force-pushed the renovate/eframe-0.x branch from 84521ea to 268d3e8 Compare November 23, 2023 17:21
@renovate renovate bot changed the title fix(deps): update rust crate eframe to 0.24.0 fix(deps): update rust crate eframe to 0.24.1 Nov 30, 2023
@renovate renovate bot force-pushed the renovate/eframe-0.x branch from 268d3e8 to 5f85e06 Compare November 30, 2023 19:01
@renovate renovate bot changed the title fix(deps): update rust crate eframe to 0.24.1 fix(deps): update rust crate eframe to 0.25.0 Jan 8, 2024
@renovate renovate bot force-pushed the renovate/eframe-0.x branch from 5f85e06 to a4d294e Compare January 8, 2024 14:45
@renovate renovate bot force-pushed the renovate/eframe-0.x branch from a4d294e to 6709925 Compare February 5, 2024 18:19
@renovate renovate bot changed the title fix(deps): update rust crate eframe to 0.25.0 fix(deps): update rust crate eframe to 0.26.0 Feb 5, 2024
@renovate renovate bot force-pushed the renovate/eframe-0.x branch from 6709925 to 2d9483e Compare February 11, 2024 09:04
@renovate renovate bot changed the title fix(deps): update rust crate eframe to 0.26.0 fix(deps): update rust crate eframe to 0.26.1 Feb 11, 2024
@renovate renovate bot force-pushed the renovate/eframe-0.x branch from 2d9483e to f6091f0 Compare February 14, 2024 14:00
@renovate renovate bot changed the title fix(deps): update rust crate eframe to 0.26.1 fix(deps): update rust crate eframe to 0.26.2 Feb 14, 2024
@renovate renovate bot force-pushed the renovate/eframe-0.x branch from f6091f0 to fe8871e Compare March 26, 2024 17:34
@renovate renovate bot changed the title fix(deps): update rust crate eframe to 0.26.2 fix(deps): update rust crate eframe to 0.27.0 Mar 26, 2024
@renovate renovate bot force-pushed the renovate/eframe-0.x branch from fe8871e to 84041e3 Compare March 29, 2024 13:25
@renovate renovate bot changed the title fix(deps): update rust crate eframe to 0.27.0 fix(deps): update rust crate eframe to 0.27.1 Mar 29, 2024
@renovate renovate bot force-pushed the renovate/eframe-0.x branch from 84041e3 to df5682a Compare April 2, 2024 20:01
@renovate renovate bot changed the title fix(deps): update rust crate eframe to 0.27.1 fix(deps): update rust crate eframe to 0.27.2 Apr 2, 2024
@renovate renovate bot force-pushed the renovate/eframe-0.x branch from df5682a to 9e33cde Compare May 5, 2024 09:46
@renovate renovate bot changed the title fix(deps): update rust crate eframe to 0.27.2 fix(deps): update rust crate eframe to 0.27.0 May 5, 2024
@renovate renovate bot force-pushed the renovate/eframe-0.x branch from 9e33cde to 72c8624 Compare July 3, 2024 23:52
@renovate renovate bot changed the title fix(deps): update rust crate eframe to 0.27.0 fix(deps): update rust crate eframe to 0.28.0 Jul 3, 2024
@renovate renovate bot changed the title fix(deps): update rust crate eframe to 0.28.0 fix(deps): update rust crate eframe to 0.29.0 Sep 26, 2024
@renovate renovate bot force-pushed the renovate/eframe-0.x branch from 72c8624 to 5b543b6 Compare September 26, 2024 17:08
@renovate renovate bot force-pushed the renovate/eframe-0.x branch from 5b543b6 to 518e594 Compare December 16, 2024 17:12
@renovate renovate bot changed the title fix(deps): update rust crate eframe to 0.29.0 fix(deps): update rust crate eframe to 0.30.0 Dec 16, 2024
@renovate renovate bot force-pushed the renovate/eframe-0.x branch from 518e594 to 04981c4 Compare February 4, 2025 17:19
@renovate renovate bot changed the title fix(deps): update rust crate eframe to 0.30.0 fix(deps): update rust crate eframe to 0.31.0 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