Cargo Features

glfw = { version = "0.57.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 default-features = false somewhere in the dependency tree.

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?

Enables wayland of glfw-sys

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.

log all?

Affects glfw::log_errors

ash vulkan?

Enables ash ^0.37.2

image all?
glfw-sys default wayland? with-window-handle-v0-5?