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 whenever spirv-tools-sys is added without default-features = false somewhere in the dependency tree.

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