Cargo Features
[dependencies]
glfw = { version = "0.58.0", default-features = false, features = ["all", "with-window-handle-v0-5", "vulkan", "wayland", "raw-window-handle-v0-6", "raw-window-handle-v0-5"] }
- default = glfw-sys, raw-window-handle-v0-6
-
These default features are set whenever
glfw
is added without
somewhere in the dependency tree.default-features = false - all = image, log, raw-window-handle-v0-6, vulkan, wayland
- with-window-handle-v0-5 = glfw-sys, raw-window-handle-v0-5
- vulkan all? = ash
-
Affects
ffi::GLFWvkproc
,ffi::glfwVulkanSupported
,ffi::glfwGetRequiredInstanceExtensions
,ffi::glfwGetInstanceProcAddress
,ffi::glfwGetPhysicalDevicePresentationSupport
,ffi::glfwCreateWindowSurface
,glfw::VkProc
… - wayland all?
-
Affects
ffi::glfwGetWaylandWindow
,ffi::glfwGetWaylandDisplay
… - raw-window-handle-v0-6 default all?
-
Enables raw-window-handle
- raw-window-handle-v0-5 with-window-handle-v0-5?
-
Enables raw-window-handle ^0.5.0
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.