Skip to content

iced-rs/winit

This branch is 3 commits ahead of, 8 commits behind rust-windowing/winit:v0.30.x.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

11414b6 · Jan 20, 2025
Apr 18, 2024
Jan 20, 2025
Dec 3, 2023
Apr 26, 2024
Dec 21, 2024
Jan 20, 2025
Apr 26, 2024
Apr 26, 2024
Jan 23, 2022
Jun 21, 2024
Jun 21, 2024
Mar 15, 2024
Mar 7, 2024
Apr 18, 2024
Jan 4, 2025
Apr 21, 2024
Dec 3, 2023
Jul 27, 2014
Jan 4, 2025
Jun 10, 2024
Apr 18, 2024
Dec 21, 2024
Apr 26, 2024
Apr 2, 2024

Repository files navigation

winit - Cross-platform window creation and management in Rust

Crates.io Docs.rs Master Docs CI Status

[dependencies]
winit = "0.30.8"

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.

About

Window handling library in pure Rust

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 100.0%