Cargo Features

[dependencies]
gpu-allocator = { version = "0.28.0", default-features = false, features = ["std", "visualizer", "vulkan", "d3d12", "metal", "hashbrown"] }
std default

Enables std of presser

Affects gpu-allocator::AllocatorDebugSettings.store_stack_traces, gpu-allocator::AllocatorDebugSettings.log_stack_traces

visualizer

Enables egui >=0.24, <=0.27 and egui_extras >=0.24, <=0.27

egui:

Only needed for visualizer.

Affects gpu-allocator::visualizer

vulkan default

Enables ash

Only needed for Vulkan. Disable all default features as good practice,
such as the ability to link/load a Vulkan library.

Affects gpu-allocator::vulkan

d3d12 default

Enables windows

Affects gpu-allocator::d3d12

metal default

Enables objc2, objc2-foundation, and objc2-metal

Affects gpu-allocator::metal

hashbrown

Enables the FreeListAllocator when std is not enabled by using the hashbrown crate

Enables hashbrown

default = d3d12, metal, std, vulkan

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