Deprecate winit_ and raw-window-handle_ features (#2161)

This commit is contained in:
marc0246 2023-03-25 12:56:36 +01:00 committed by GitHub
parent 1f7f5e4ec8
commit 5dfd1b203e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 4 deletions

View File

@ -2,7 +2,10 @@
name = "vulkano-win"
version = "0.32.0"
edition = "2021"
authors = ["Pierre Krieger <pierre.krieger1708@gmail.com>", "The vulkano contributors"]
authors = [
"Pierre Krieger <pierre.krieger1708@gmail.com>",
"The vulkano contributors",
]
repository = "https://github.com/vulkano-rs/vulkano"
description = "Link between vulkano and winit"
license = "MIT/Apache-2.0"
@ -12,9 +15,11 @@ keywords = ["vulkan", "bindings", "graphics", "gpu", "rendering"]
categories = ["rendering::graphics-api"]
[features]
default = ["winit_", "raw-window-handle_"]
winit_ = ["winit", "objc", "core-graphics-types"]
raw-window-handle_ = ["raw-window-handle"]
default = ["winit", "raw-window-handle"]
raw-window-handle = ["dep:raw-window-handle"]
raw-window-handle_ = ["dep:raw-window-handle"]
winit = ["dep:winit", "dep:objc", "dep:core-graphics-types"]
winit_ = ["dep:winit", "dep:objc", "dep:core-graphics-types"]
[dependencies]
raw-window-handle = { version = "0.5", optional = true }

View File

@ -12,12 +12,30 @@
#![allow(clippy::missing_safety_doc)]
#![warn(rust_2018_idioms, rust_2021_compatibility)]
#[cfg(feature = "raw-window-handle")]
mod raw_window_handle;
#[cfg(feature = "raw-window-handle")]
pub use crate::raw_window_handle::*;
#[cfg(feature = "winit")]
mod winit;
#[cfg(feature = "winit")]
pub use crate::winit::*;
#[cfg(feature = "raw-window-handle_")]
#[deprecated(
since = "0.33.0",
note = "the `raw-window-handle_` feature is deprecated, use `raw-window-handle` instead"
)]
mod raw_window_handle;
#[cfg(feature = "raw-window-handle_")]
pub use crate::raw_window_handle::*;
#[cfg(feature = "winit_")]
#[deprecated(
since = "0.33.0",
note = "the `winit_` feature is deprecated, use `winit` instead"
)]
mod winit;
#[cfg(feature = "winit_")]
pub use crate::winit::*;