mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-22 06:45:23 +00:00
Deprecate winit_
and raw-window-handle_
features (#2161)
This commit is contained in:
parent
1f7f5e4ec8
commit
5dfd1b203e
@ -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 }
|
||||
|
@ -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::*;
|
||||
|
Loading…
Reference in New Issue
Block a user