Cargo Features

[dependencies]
rustc_codegen_spirv = { version = "0.9.0", default-features = false, features = ["use-installed-tools", "use-compiled-tools", "skip-toolchain-check"] }
default = use-compiled-tools

By default, the use-compiled-tools is enabled, as doesn't require additional setup steps for the user. This does however mean that you will need to disable default features and explicitly enable use-installed-tools if you are using this in an environment with spirv-tools in PATH, and you don't want to take the compile time cost

use-installed-tools

If enabled, uses spirv-tools binaries installed in PATH, instead of compiling and linking the spirv-tools C++ code

Enables use-installed-tools of spirv-tools ^0.9

use-compiled-tools default

If enabled will compile and link the C++ code for the spirv tools, the compiled version is preferred if both this and use-installed-tools are enabled

Enables use-compiled-tools of spirv-tools ^0.9

skip-toolchain-check

If enabled, this will not check whether the current rustc version is set to the appropriate channel. rustc_cogeden_spirv requires a specific nightly version,
and will likely produce compile errors when built against a different toolchain.
Enable this feature to be able to experiment with other versions.