Cargo Features

[dependencies]
vulkan_rs = { version = "1.0.62", default-features = false, features = ["VK_default_extensions", "VK_surface_extensions", "VK_USE_PLATFORM_DEFAULT", "VK_USE_PLATFORM_XLIB_KHR", "VK_USE_PLATFORM_XLIB_XRANDR_EXT", "VK_USE_PLATFORM_XCB_KHR", "VK_USE_PLATFORM_WAYLAND_KHR", "VK_USE_PLATFORM_MIR_KHR", "VK_USE_PLATFORM_ANDROID_KHR", "VK_USE_PLATFORM_WIN32_KHR", "VK_USE_PLATFORM_VI_NN", "VK_KHR_xcb_surface", "VK_KHR_mir_surface", "VK_MVK_ios_surface", "VK_NN_vi_surface", "VK_EXT_debug_report"] }
default = VK_USE_PLATFORM_DEFAULT, VK_default_extensions

These default features are set whenever vulkan_rs is added without default-features = false somewhere in the dependency tree.

VK_default_extensions default = VK_EXT_debug_report, VK_KHR_swapchain, VK_surface_extensions
VK_surface_extensions VK_default_extensions = VK_KHR_android_surface, VK_KHR_mir_surface, VK_KHR_surface, VK_KHR_wayland_surface, VK_KHR_xcb_surface, VK_KHR_xlib_surface, VK_MVK_ios_surface, VK_MVK_macos_surface, VK_NN_vi_surface
VK_USE_PLATFORM_DEFAULT default

When enabeling VK_USE_PLATFORM_DEFAULT, the default plaftorm features for the current target (see abobe) will be automatically enabled.
For example, when target_os="android" the VK_USE_PLATFORM_ANDROID_KHR feature will be enabled. (see build.rs)

VK_USE_PLATFORM_XLIB_KHR VK_USE_PLATFORM_XLIB_XRANDR_EXT?

Affects platform::xlib

VK_USE_PLATFORM_XLIB_XRANDR_EXT = VK_USE_PLATFORM_XLIB_KHR
VK_USE_PLATFORM_XCB_KHR

Affects platform::xcb

VK_USE_PLATFORM_WAYLAND_KHR

Affects platform::wayland

VK_USE_PLATFORM_MIR_KHR

Affects platform::mir

VK_USE_PLATFORM_ANDROID_KHR

Affects platform::android

VK_USE_PLATFORM_WIN32_KHR

Affects platform::win32

VK_USE_PLATFORM_IOS_MVK VK_USE_PLATFORM_MACOS_MVK VK_USE_PLATFORM_VI_NN
VK_KHR_surface VK_KHR_xlib_surface VK_KHR_xcb_surface VK_surface_extensions?
VK_KHR_wayland_surface VK_KHR_mir_surface VK_surface_extensions?
VK_KHR_android_surface VK_MVK_ios_surface VK_surface_extensions?
VK_MVK_macos_surface VK_NN_vi_surface VK_surface_extensions?
VK_KHR_swapchain VK_EXT_debug_report VK_default_extensions