Cargo Features
rendy-core has no features set by default.
[dependencies]
rendy-core = { version = "0.5.1", features = ["serde-1", "empty", "dx12", "metal", "gl", "vulkan", "no-slow-safety-checks"] }
- serde-1 = serde
-
Enables serde of gfx-hal ^0.4.1
- 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-core crate and not rely on the feature being enabled for that crate directly. To conditionally enable token trees
rendy-core::with_*
macro should be used instead ofcfg
attributes. - dx12 = gfx-backend-dx12
- metal = gfx-backend-metal
- gl = gfx-backend-gl
- vulkan = gfx-backend-vulkan
- 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.4
- gfx-backend-gl gl?
-
Enables gfx-backend-gl ^0.4
- serde serde-1?
- gfx-backend-dx12 win not wasm32 dx12?
-
Enables gfx-backend-dx12 ^0.4
- gfx-backend-metal not wasm32 mac arm64 ios metal?
-
Enables gfx-backend-metal ^0.4
- gfx-backend-vulkan win unix not mac ios not wasm32 vulkan?
-
Enables gfx-backend-vulkan ^0.4