Observar
4
0
Fork
Você já fez o fork de winit
0
Web IDE
espelhamento de https://github.com/storytold/winit.git sincronizado 2026-10-26 04:33:53 +00:00
Window handling library in pure Rust
Encontrar um arquivo
Arquivos do repositório (último commit primeiro)
Nome de arquivo Última mensagem de commit Última data de commit
taonyx f0a83481c2
wayland: only destroy the text input when the seat is removed
The text input has no direct connection to seat capability,
but only to seat, so destroy it when the seat is being destroyed.
2026-10-12 22:04:09 +09:00
.cargo Use Taplo for TOML formatting 2024-07-28 17:38:44 +02:00
.github macOS: implement set_blur using NSVisualEffectView 2026-09-04 10:15:52 +02:00
dpi Reduce duplication in dpi module (#2148) 2026-02-17 15:45:53 +01:00
winit wayland: only destroy the text input when the seat is removed 2026-10-12 22:04:09 +09:00
winit-android Add enum CustomCursorError 2026-09-24 10:08:56 +02:00
winit-appkit Remove variant RequestError::Ignored 2026-09-24 10:08:56 +02:00
winit-common Popup anchor system refinement (#4646) 2026-09-02 09:48:58 +02:00
winit-core Remove variant RequestError::Ignored 2026-09-24 10:08:56 +02:00
winit-orbital Add enum CustomCursorError 2026-09-24 10:08:56 +02:00
winit-uikit Add enum CustomCursorError 2026-09-24 10:08:56 +02:00
winit-wayland wayland: only destroy the text input when the seat is removed 2026-10-12 22:04:09 +09:00
winit-web Add enum CustomCursorError 2026-09-24 10:08:56 +02:00
winit-win32 win32: avoid overflow negating wheel deltas (#4726) 2026-10-06 07:48:55 +02:00
winit-x11 x11: reset the drag and drop state when a drag operation ends 2026-10-05 12:12:52 +02:00
.git-blame-ignore-revs Add to .git-blame-ignore-revs file 2024-07-28 17:39:04 +02:00
.gitattributes Update changelog guidelines to prevent conflicts from blocking PRs (#2145) 2022-01-23 13:55:33 +01:00
.gitignore Move to TypeScript (#3830) 2024-07-27 18:26:52 +02:00
Cargo.toml Remove the url dependency from winit-win32 and the dnd example 2026-09-18 21:03:25 +02:00
CHANGELOG.md Move winit itself to crate 2025-06-07 13:07:12 +09:00
clippy.toml examples: Use tracing macros instead of println! 2026-03-18 22:55:47 +01:00
CODE_OF_CONDUCT.md docs: add a code of conduct 2024-03-07 17:32:06 +04:00
CONTRIBUTING.md chore: make git checkout build on Windows with symlinks disabled 2025-06-10 07:37:36 +09:00
deny.toml winit-wayland: add new font backends 2026-09-02 21:11:01 +09:00
examples winit-core/ime: add more purposes and content hints 2025-09-06 13:27:55 +09:00
FEATURES.md Remove feature description in FEATURES.md (#3479) 2024-12-03 21:24:57 +01:00
HALL_OF_CHAMPIONS.md Changes and improvements to the documentation (#3253) 2023-12-03 18:39:08 +01:00
LICENSE Initial commit 2014-07-27 11:41:26 +02:00
README.md Bump version on master 2026-09-05 03:43:23 +09:00
rustfmt.toml Use Taplo for TOML formatting 2024-07-28 17:38:44 +02:00
taplo.toml Use Taplo for TOML formatting 2024-07-28 17:38:44 +02:00
typos.toml New drag and drop API (#4571) 2026-07-16 14:48:12 +02:00

winit - Cross-platform window creation and management in Rust

Crates.io Docs.rs UNSTABLE docs CI Status

[dependencies]
winit = "0.31.0-beta.3"

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.86. 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.

An exception is made 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.

Redox OS is also not covered by this MSRV policy, as it requires a Rust nightly toolchain to compile.

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.

Repository License

Note that the license in LICENSE doesn't apply in full to the DPI package ./dpi. Full details can be found in that folder's README.