Cargo Features
[dependencies]
spirv-tools-sys = { version = "0.8.0", default-features = false, features = ["use-installed-tools", "use-compiled-tools"] }
- default = use-compiled-tools
-
The
use-compiled-tools
feature is set by default wheneverspirv-tools-sys
is added without
somewhere in the dependency tree.default-features = false - use-installed-tools
-
Using this feature disables the compilation in the build script, but preserves the types so that spirv-tools can still work without needing to keep copies of some of the basic enums etc
- use-compiled-tools default
-
Forces compilation of the C++ code, even if
use-installed-tools
is enabled