Cargo Features

[dependencies]
spirv-tools = { version = "0.10.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 is added without default-features = false somewhere in the dependency tree.

use-installed-tools = memchr, tempfile

Enables use-installed-tools of spirv-tools-sys

spirv-tools-sys:

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

Affects assembler::tool, opt::tool, val::tool

use-compiled-tools default

Enables use-compiled-tools of spirv-tools-sys

spirv-tools-sys:

Forces compilation of the C++ code, even if use-installed-tools is enabled

Affects assembler::compiled, binary::external, opt::compiled, val::compiled

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.

memchr use-installed-tools?

Enables memchr

Used for parsing output when running binaries

tempfile use-installed-tools?