Winit version 0.31.0-beta.2

This commit is contained in:
Kirill Chibisov 2025-11-16 17:15:45 +09:00
parent b961e8e941
commit f98ccf8efc
5 changed files with 30 additions and 28 deletions

View file

@ -8,22 +8,22 @@ edition = "2024"
license = "Apache-2.0" license = "Apache-2.0"
repository = "https://github.com/rust-windowing/winit" repository = "https://github.com/rust-windowing/winit"
rust-version = "1.85" rust-version = "1.85"
version = "0.31.0-beta.1" version = "0.31.0-beta.2"
[workspace.dependencies] [workspace.dependencies]
# Workspace dependencies. # Workspace dependencies.
# `winit` has no version here to allow using it in dev deps for docs. # `winit` has no version here to allow using it in dev deps for docs.
winit = { path = "winit" } winit = { path = "winit" }
winit-android = { version = "=0.31.0-beta.1", path = "winit-android" } winit-android = { version = "=0.31.0-beta.2", path = "winit-android" }
winit-appkit = { version = "=0.31.0-beta.1", path = "winit-appkit" } winit-appkit = { version = "=0.31.0-beta.2", path = "winit-appkit" }
winit-common = { version = "=0.31.0-beta.1", path = "winit-common" } winit-common = { version = "=0.31.0-beta.2", path = "winit-common" }
winit-core = { version = "=0.31.0-beta.1", path = "winit-core" } winit-core = { version = "=0.31.0-beta.2", path = "winit-core" }
winit-orbital = { version = "=0.31.0-beta.1", path = "winit-orbital" } winit-orbital = { version = "=0.31.0-beta.2", path = "winit-orbital" }
winit-uikit = { version = "=0.31.0-beta.1", path = "winit-uikit" } winit-uikit = { version = "=0.31.0-beta.2", path = "winit-uikit" }
winit-wayland = { version = "=0.31.0-beta.1", path = "winit-wayland", default-features = false } winit-wayland = { version = "=0.31.0-beta.2", path = "winit-wayland", default-features = false }
winit-web = { version = "=0.31.0-beta.1", path = "winit-web" } winit-web = { version = "=0.31.0-beta.2", path = "winit-web" }
winit-win32 = { version = "=0.31.0-beta.1", path = "winit-win32" } winit-win32 = { version = "=0.31.0-beta.2", path = "winit-win32" }
winit-x11 = { version = "=0.31.0-beta.1", path = "winit-x11" } winit-x11 = { version = "=0.31.0-beta.2", path = "winit-x11" }
# Core dependencies. # Core dependencies.
bitflags = "2" bitflags = "2"

View file

@ -8,7 +8,7 @@
```toml ```toml
[dependencies] [dependencies]
winit = "0.31.0-beta.1" winit = "0.31.0-beta.2"
``` ```
## [Documentation](https://docs.rs/winit) ## [Documentation](https://docs.rs/winit)

View file

@ -63,7 +63,7 @@
//! with `cargo apk`, then the minimal changes would be: //! with `cargo apk`, then the minimal changes would be:
//! 1. Remove `ndk-glue` from your `Cargo.toml` //! 1. Remove `ndk-glue` from your `Cargo.toml`
//! 2. Enable the `"android-native-activity"` feature for Winit: `winit = { version = //! 2. Enable the `"android-native-activity"` feature for Winit: `winit = { version =
//! "0.31.0-beta.1", features = [ "android-native-activity" ] }` //! "0.31.0-beta.2", features = [ "android-native-activity" ] }`
//! 3. Add an `android_main` entrypoint (as above), instead of using the '`[ndk_glue::main]` proc //! 3. Add an `android_main` entrypoint (as above), instead of using the '`[ndk_glue::main]` proc
//! macro from `ndk-macros` (optionally add a dependency on `android_logger` and initialize //! macro from `ndk-macros` (optionally add a dependency on `android_logger` and initialize
//! logging as above). //! logging as above).

View file

@ -39,18 +39,3 @@ The migration guide could reference other migration examples in the current
changelog entry. changelog entry.
## Unreleased ## Unreleased
### Added
- Add `EventLoopExtRegister::register_app` for being explicit about how the event loop runs on Web.
- Add `EventLoopExtNeverReturn::run_app_never_return` for being explicit about how the event loop runs on iOS.
### Changed
- On Web, avoid throwing an exception in `EventLoop::run_app`, instead preferring to return to the caller.
This requires passing a `'static` application to ensure that the application state will live as long as necessary.
- On Web, the event loop can now always be re-created once it has finished running.
### Fixed
- Fixed panic when calling `Window::set_ime_allowed`.

View file

@ -1,3 +1,20 @@
## 0.31.0-beta.2
### Added
- Add `EventLoopExtRegister::register_app` for being explicit about how the event loop runs on Web.
- Add `EventLoopExtNeverReturn::run_app_never_return` for being explicit about how the event loop runs on iOS.
### Changed
- On Web, avoid throwing an exception in `EventLoop::run_app`, instead preferring to return to the caller.
This requires passing a `'static` application to ensure that the application state will live as long as necessary.
- On Web, the event loop can now always be re-created once it has finished running.
### Fixed
- Fixed panic when calling `Window::set_ime_allowed`.
## 0.31.0-beta.1 ## 0.31.0-beta.1
### Added ### Added