1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//! # Cargo features
//!
//! | Feature             | Description                                                                |
//! |---------------------|----------------------------------------------------------------------------|
//! | `raw_window_handle` | Include support for the [`raw_window_handle`] library. Enabled by default. |
//! | `winit`             | Include support for the [`winit`] library. Enabled by default.             |
//!
//! [`raw_window_handle`]: https://crates.io/crates/raw_window_handle
//! [`winit`]: https://crates.io/crates/winit

#![deprecated(
    since = "0.34.0",
    note = "vulkano-win is deprecated, use `Surface::required_extensions` and \
    `Surface::from_window` instead"
)]
#![doc(html_logo_url = "https://raw.githubusercontent.com/vulkano-rs/vulkano/master/logo.png")]
#![allow(clippy::missing_safety_doc, clippy::result_large_err)]
#![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::*;