Cargo Features

[dependencies]
glium = { version = "0.35.0", default-features = false, features = ["glutin_backend", "unstable", "vk_interop", "simple_window_builder"] }
default = glutin_backend, simple_window_builder

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

Enables glutin, glutin-winit, and winit

glutin_backend default = glutin
unstable

used for benchmarks

vk_interop

used for texture import from Vulkan

simple_window_builder default = glutin, glutin-winit, raw-window-handle, winit

used in the tutorial

Affects glutin::SimpleWindowBuilder

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.

winit default simple_window_builder
raw-window-handle simple_window_builder
glutin-winit default simple_window_builder
glutin default glutin_backend simple_window_builder

Affects backend::glutin