[package]
name = "rustc_codegen_spirv"
description = "SPIR-V code generator backend for rustc"
documentation = "https://rust-gpu.github.io/rust-gpu/api/rustc_codegen_spirv/index.html"
version.workspace = true
authors.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
[lib]
crate-type = ["dylib"]
[features]
default = ["use-compiled-tools"]
use-installed-tools = ["spirv-tools/use-installed-tools", "naga"]
use-compiled-tools = ["spirv-tools/use-compiled-tools", "naga"]
skip-toolchain-check = []
naga = ["dep:naga"]
[dependencies]
ahash = { version = "0.8.11", features = ["no-rng"] }
bytemuck = { workspace = true, features = ["aarch64_simd"] }
log = { version = "0.4.22", features = ["std"] }
regex = { version = "1", features = ["perf"] }
rustix = { version = "1.0.8", features = ["all-apis"] }
object = { version = "0.37.1", default-features = false, features = ["read_core", "elf", "macho", "pe", "xcoff", "unaligned", "archive", "write", "wasm"] }
thorin-dwp = "0.9.0"
ar = "0.9.0"
either = "1.8.0"
indexmap = "2.6.0"
rspirv.workspace = true
rustc_codegen_spirv-types.workspace = true
spirv-std-types = { workspace = true, features = ["std"] }
rustc-demangle = "0.1.21"
sanitize-filename = "0.6.0"
smallvec = { version = "1.6.1", features = ["const_generics", "const_new", "union"] }
spirt = "0.4.0"
spirv-tools.workspace = true
lazy_static = "1.4.0"
itertools = "0.14.0"
tracing.workspace = true
tracing-subscriber.workspace = true
tracing-tree = "0.4.0"
naga = { version = "29.0.1", features = ["spv-in", "wgsl-out"], optional = true }
strum = { version = "0.27.2", features = ["derive"] }
rspirv2.workspace = true
[dev-dependencies]
pretty_assertions = "1.0"
termcolor = "1.1.3"
[target.'cfg(unix)'.dependencies]
libc = "0.2.50"
[package.metadata.rust-analyzer]
rustc_private = true