dotCooCoo 29ab80ea62 CI: fix the typos, lockfile and cargo-deny failures on craft/0.30.13
- typos.toml ignores the commit SHA 6a87addd, which typos reads as the
  word "addd" in PATCHES.md and docs/egui-037-migration-plan.md.
- The "Generate lockfile" step pins syn as syn@2, since syn 2 and syn 3
  are now both locked, and pins serde 1.0.228, foreign-types-macros
  0.2.3 and tracing-web 0.1.3, whose newer releases need syn 3 or a
  newer wasm-bindgen. On the 1.70.0 jobs the step resolves with
  CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS=fallback, so the lockfile
  only holds versions whose rust-version allows 1.70.0, and the
  wasm-bindgen crates move back to 0.2.105.
- deny.toml skips the second versions of syn, thiserror,
  thiserror-impl, jni-sys and redox_syscall, and allows
  android-activity 0.6.1's import-games-sdk.sh by checksum.
2026-11-22 23:25:43 -08:00
2024-04-18 19:43:39 +02:00
2024-04-26 17:11:44 +02:00
2024-04-18 20:04:42 +04:00
2024-03-07 17:32:06 +04:00
2014-07-27 11:41:26 +02:00
2026-03-02 22:49:04 +09:00

winit - Cross-platform window creation and management in Rust

Crates.io Docs.rs Master Docs CI Status

[dependencies]
winit = "0.30.13"

Documentation

For features within the scope of winit, see FEATURES.md.

For features outside the scope of winit, see Are we GUI Yet? and Are we game yet?, depending on what kind of project you're looking to do.

Contact Us

Join us in our Matrix room.

The maintainers have a meeting every friday at UTC 15. The meeting notes can be found here.

Usage

Winit is a window creation and management library. It can create windows and lets you handle events (for example: the window being resized, a key being pressed, a mouse movement, etc.) produced by the window.

Winit is designed to be a low-level brick in a hierarchy of libraries. Consequently, in order to show something on the window you need to use the platform-specific getters provided by winit, or another library.

CONTRIBUTING

For contributing guidelines see CONTRIBUTING.md.

MSRV Policy

This crate's Minimum Supported Rust Version (MSRV) is 1.70. Changes to the MSRV will be accompanied by a minor version bump.

As a tentative policy, the upper bound of the MSRV is given by the following formula:

min(sid, stable - 3)

Where sid is the current version of rustc provided by Debian Sid, and stable is the latest stable version of Rust. This bound may be broken in case of a major ecosystem shift or a security vulnerability.

The exception is for the Android platform, where a higher Rust version must be used for certain Android features. In this case, the MSRV will be capped at the latest stable version of Rust minus three. This inconsistency is not reflected in Cargo metadata, as it is not powerful enough to expose this restriction.

All crates in the rust-windowing organizations have the same MSRV policy.

Platform-specific usage

Check out the winit::platform module for platform-specific usage.

S
Description
Window handling library in pure Rust
Readme Apache-2.0
17 MiB
0 Stars 1 Watchers 0 Forks
Languages
Rust 100%