[package]
edition = "2021"
rust-version = "1.65.0"
name = "spirv-cross2"
version = "0.6.0"
authors = ["Ronny Chan <ronny@ronnychan.ca>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safe Rust bindings to SPIRV-Cross"
readme = "README.md"
keywords = [
"spir-v",
"glsl",
"msl",
"shaders",
"spirv-cross",
]
categories = [
"compilers",
"rendering",
"external-ffi-bindings",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/SnowflakePowered/spirv-cross2"
[package.metadata.docs.rs]
features = ["full"]
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
cpp = ["spirv-cross-sys/cpp"]
default = [
"glsl",
"hlsl",
"msl",
]
f16 = ["dep:half"]
full = [
"gfx-math-types",
"glam-types",
"f16",
"glsl",
"hlsl",
"msl",
"json",
"cpp",
]
gfx-math-types = ["dep:gfx-maths"]
glam-types = ["dep:glam"]
glsl = ["spirv-cross-sys/glsl"]
hlsl = ["spirv-cross-sys/hlsl"]
json = ["spirv-cross-sys/json"]
msl = ["spirv-cross-sys/msl"]
[lib]
name = "spirv_cross2"
path = "src/lib.rs"
[[test]]
name = "sandbox"
path = "tests/sandbox.rs"
[dependencies.bitflags]
version = "2.6.0"
[dependencies.bytemuck]
version = "1.17.1"
features = ["must_cast"]
[dependencies.gfx-maths]
version = "0.2.9"
optional = true
[dependencies.glam]
version = "0.29.0"
optional = true
[dependencies.half]
version = "2.4.1"
optional = true
[dependencies.memchr]
version = "2.7.4"
[dependencies.spirv]
version = "0.3.0"
[dependencies.spirv-cross-sys]
version = "0.6.0"
[dependencies.spirv-cross2-derive]
version = "0.1.0"
[dependencies.thiserror]
version = "1.0.63"
[dev-dependencies.glslang]
version = "0.6.0"