[package] name = "wasm2spirv" description = "Compile your WebAssembly programs into SPIR-V shaders" version = "0.1.0" edition = "2021" keywords = ["wasm", "spirv", "vulkan", "webassembly", "compiler"] categories = [ "compilers", "development-tools", "game-development", "graphics", "wasm", ] repository = "https://github.com/Aandreba/wasm2spirv" license = "MIT" [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg", "docsrs"] [lib] path = "src/lib.rs" [[bin]] name = "wasm2spirv" path = "src/cli.rs" required-features = [ "clap", "color-eyre", "serde_json", "spirv-tools", "spirv_cross", ] [dependencies] bitflags = "2.3.3" clap = { version = "4.3.16", optional = true, features = ["derive", "env"] } color-eyre = { version = "0.6.2", optional = true } docfg = "0.1.0" itertools = "0.11.0" num-traits = "0.2.15" num_enum = "0.6.1" once_cell = "1.18.0" rspirv = "0.11.0" serde = { version = "1.0.171", features = ["derive"] } serde_json = { version = "1.0.103", optional = true } spirv = { version = "0.2.0", features = ["serde", "serialize", "deserialize"] } spirv-tools = { version = "0.9.0", optional = true } spirv_cross = { version = "0.23.1", optional = true, features = [ "glsl", "hlsl", "msl", ] } thiserror = "1.0.43" tracing = "0.1.37" tracing-subscriber = "0.3.17" vector_mapp = { version = "0.3.2", features = ["serde"] } wasmparser = "0.108.0" wat = "1.0.67" [dev-dependencies] color-eyre = "0.6.2" serde_json = "1.0.103"