No description
Find a file
John Nunley 4ade1a7518 docs: add a code of conduct
As previously discussed in today's meeting, this commit adds a code
of conduct to winit. I've elected to re-use the Rust project's Code
of Conduct, as it is also in use by other popular Rust projects and I
agree with its intentions. The goal is to set forward a set of explicit
expectations for how discourse in the rust-windowing project should be
conducted.

I've deliberately left out a mechanism for enforcing this code of
conduct. My hope is that, by the act of setting these expectations,
contributors will voluntarily follow them. In addition I have no
interest in being an internet janitor. If this becomes necessary in the
future we can look into it later.

rust-windowing collaborators, please read the linked Code of Conduct.
Not only for expectations of behavior, but also for expectations of how
it will be enforced should it come to it.

Signed-off-by: John Nunley <dev@notgull.net>
2024-03-07 17:32:06 +04:00
.cargo Improve web example (#2115) 2022-02-25 12:57:46 +01:00
.github Pin bumpalo to 3.14.0 on CI 2024-02-21 14:44:29 +04:00
docs/res Changes and improvements to the documentation (#3253) 2023-12-03 18:39:08 +01:00
dpi Add LICENSE file to dpi crate 2024-02-28 23:13:14 +04:00
examples api: add ApplicationHandler and matching run APIs 2024-03-05 16:13:14 +04:00
run-wasm Split dpi module out into a separate crate (#3518) 2024-02-26 14:52:00 +01:00
src Bump version on master 2024-03-06 14:37:46 +04:00
tests Create custom cursor with directly with event loop 2024-02-21 14:44:29 +04:00
.gitattributes Update changelog guidelines to prevent conflicts from blocking PRs (#2145) 2022-01-23 13:55:33 +01:00
.gitignore Add WindowExtMacOS::{set_,}option_as_alt 2023-01-31 12:35:49 +03:00
build.rs Platform is called Web not Wasm (#3393) 2024-01-14 18:54:52 +01:00
Cargo.toml Bump version on master 2024-03-06 14:37:46 +04:00
CHANGELOG.md Bump version on master 2024-03-06 14:37:46 +04:00
clippy.toml macOS: Clean up coordinate system calculations (#3302) 2023-12-24 10:12:09 +01:00
CODE_OF_CONDUCT.md docs: add a code of conduct 2024-03-07 17:32:06 +04:00
CONTRIBUTING.md Remove Testers and Contributors table (#3497) 2024-02-17 09:54:29 +01:00
deny.toml Update Redox (#3368) 2024-01-10 20:05:52 +01:00
FEATURES.md Move some of our documentation to docs.rs (#3478) 2024-02-23 15:35:18 +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 2024-03-06 14:37:46 +04:00
rustfmt.toml Re-format on stable rustfmt (#974) 2019-06-24 12:14:55 -04:00

winit - Cross-platform window creation and management in Rust

Crates.io Docs.rs Master Docs CI Status

[dependencies]
winit = "0.29.14"

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. If you don't get an answer there, try Libera.Chat.

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.