No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
SakulFlee a926fe1562
All checks were successful
Check / check (push) Successful in 1m45s
Merge pull request 'chore: Configure Renovate' (#1) from renovate/configure into main
Reviewed-on: #1
2026-09-30 03:04:45 +00:00
.cargo Re-introduce Web examples (#3637) 2024-04-18 19:43:39 +02:00
.forgejo/workflows ci: add cargo check workflow (shadows upstream .github workflows) 2026-09-24 20:21:59 +02:00
.github Remove nightly from CI 2025-01-20 23:36:48 +01:00
docs/res Changes and improvements to the documentation (#3253) 2023-12-03 18:39:08 +01:00
dpi chore(rustfmt): use nightly (#2325) 2024-04-26 17:11:44 +02:00
examples x11: fix WindowAttributesExtX11::with_x11_screen() 2024-12-21 09:05:36 +03:00
src feat(ios): route pointer touches as mouse events 2026-09-24 18:18:57 +02:00
tests chore(rustfmt): use nightly (#2325) 2024-04-26 17:11:44 +02:00
.git-blame-ignore-revs Add .git-blame-ignore-revs 2024-04-26 20:19:45 +04:00
.gitattributes Update changelog guidelines to prevent conflicts from blocking PRs (#2145) 2022-01-23 13:55:33 +01:00
.gitignore Web: implement WaitUntilStrategy (#3739) 2024-06-21 20:16:14 +03:00
.swcrc Web: implement WaitUntilStrategy (#3739) 2024-06-21 20:16:14 +03:00
build.rs chore: explicitly use cfg_aliases 0.2.1 2024-06-10 18:40:33 +03:00
Cargo.toml Winit version 0.30.8 2025-01-04 08:45:12 +03:00
CHANGELOG.md chore(docs): make changelogs visible on docsrs 2024-03-15 17:19:19 +04:00
clippy.toml Fix icrate's clippy customization 2024-04-18 20:04:42 +04:00
CODE_OF_CONDUCT.md docs: add a code of conduct 2024-03-07 17:32:06 +04:00
CONTRIBUTING.md docs: fix release steps in CONTRIBUTING.md 2024-04-18 20:27:31 +04:00
deny.toml Update minimum version of wasm-bindgen (#3860) 2024-12-21 09:05:36 +03:00
FEATURES.md Windows: implement resize increments (#3623) 2024-04-21 15:05:41 +02:00
FORK.md docs: add FORK.md explaining why we forked and how to un-fork 2026-09-24 22:36:13 +02: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 Winit version 0.30.8 2025-01-04 08:45:12 +03:00
renovate.json Add renovate.json 2026-09-29 03:05:04 +00:00
rustfmt.toml chore(rustfmt): use nightly (#2325) 2024-04-26 17:11:44 +02:00
typos.toml Fix CI failing when updating typos to 1.20.3 (#3620) 2024-04-03 00:38:55 +02:00

winit - Cross-platform window creation and management in Rust

Crates.io Docs.rs Master Docs CI Status

[dependencies]
winit = "0.30.8"

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.

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.