No description
Find a file
2025-05-25 17:24:00 +02:00
.cargo Use Taplo for TOML formatting 2024-07-28 17:38:44 +02:00
.github Move X11 backend to winit-x11 (#4253) 2025-05-25 17:24:00 +02:00
docs Add safe area and document coordinate systems (#3890) 2024-11-21 17:37:03 +01:00
dpi DPI version 0.1.2 2025-05-02 16:18:37 +09:00
examples Move EventLoopExt* to winit-core (#4228) 2025-05-20 16:56:53 +02:00
src Move X11 backend to winit-x11 (#4253) 2025-05-25 17:24:00 +02:00
tests winit-core: move window 2025-05-14 21:18:44 +09:00
winit-android Move Android backend to winit-android (#4250) 2025-05-24 13:29:53 +02:00
winit-common Move shared code to a new crate winit-common 2025-05-25 20:41:28 +09:00
winit-core fix: Allow unknown bit-depth on macOS (#4190) 2025-05-23 16:07:09 +02:00
winit-orbital Split Orbital backend out into winit-orbital (#4243) 2025-05-21 13:12:55 +02:00
winit-uikit Move UIKit backend to winit-uikit 2025-05-25 23:19:30 +09:00
winit-wayland Move Wayland backend to winit-wayland (#4252) 2025-05-25 16:48:07 +02:00
winit-win32 Move Windows backend to winit-win32 2025-05-25 12:13:25 +09:00
winit-x11 Move X11 backend to winit-x11 (#4253) 2025-05-25 17:24:00 +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
build.rs Move iOS and macOS implementations into new apple module (#3756) 2024-06-24 13:26:49 +02:00
Cargo.toml Move X11 backend to winit-x11 (#4253) 2025-05-25 17:24:00 +02:00
CHANGELOG.md chore(docs): make changelogs visible on docsrs 2024-03-15 17:19:19 +04:00
clippy.toml chose: appease clippy 2025-05-17 10:56:51 +09:00
CODE_OF_CONDUCT.md docs: add a code of conduct 2024-03-07 17:32:06 +04:00
CONTRIBUTING.md Document markdown wrapping policy (#3680) 2025-03-17 13:04:24 +01:00
deny.toml ci/deny: allow scripts in zerocopy 2025-05-14 21:18:44 +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 2025-05-21 18:04:10 +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 Add safe area and document coordinate systems (#3890) 2024-11-21 17:37:03 +01:00

winit - Cross-platform window creation and management in Rust

Crates.io Docs.rs UNSTABLE docs CI Status

[dependencies]
winit = "0.30.11"

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