Cargo Features

rendy-util has no features set by default.

[dependencies]
rendy-util = { version = "0.4.1", features = ["serde-1", "empty", "dx12", "metal", "vulkan", "vulkan-x11", "no-slow-safety-checks"] }
serde-1 = serde

Enables serde of gfx-hal ^0.3

empty = gfx-backend-empty

This list of features is common for many of rendy's crates All other crates should transitively enable feature for rendy-util crate and not rely on the feature being enabled for that crate directly. To conditionally enable token trees rendy-util::with_* macro should be used instead of cfg attributes.

dx12 = gfx-backend-dx12
metal = gfx-backend-metal
vulkan vulkan-x11? = gfx-backend-vulkan
vulkan-x11 = vulkan

Enables x11 of gfx-backend-vulkan ^0.3

no-slow-safety-checks

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.

gfx-backend-empty empty?

Enables gfx-backend-empty ^0.3

gfx-backend-dx12 dx12?

Enables gfx-backend-dx12 ^0.3

gfx-backend-metal metal?

Enables gfx-backend-metal ^0.3

gfx-backend-vulkan vulkan? vulkan-x11?

Enables gfx-backend-vulkan ^0.3

serde serde-1?