mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-25 16:25:25 +00:00
43 lines
1.6 KiB
TOML
43 lines
1.6 KiB
TOML
[package]
|
|
name = "spirv-builder"
|
|
description = "Helper for building shaders with rust-gpu"
|
|
version.workspace = true
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
|
|
# HACK(eddyb) allow `docs.rs` to build this crate by making `rustc_codegen_spirv`
|
|
# dependency optional in a way that will always result in it being enabled
|
|
# during normal builds (as `use-{installed,compiled}-tools` both require it),
|
|
# and produces a compile-time error if it's missing and `cfg(doc)` isn't set.
|
|
[package.metadata.docs.rs]
|
|
no-default-features = true
|
|
|
|
# NOTE(eddyb) the `dep:` prefixes used here prevents a feature with the name as
|
|
# that optional dependency, from being automatically created by Cargo, see:
|
|
# https://doc.rust-lang.org/cargo/reference/features.html#optional-dependencies
|
|
[features]
|
|
# See `rustc_codegen_spirv/Cargo.toml` for details on these features.
|
|
default = ["use-compiled-tools"]
|
|
use-installed-tools = ["dep:rustc_codegen_spirv", "rustc_codegen_spirv?/use-installed-tools"]
|
|
use-compiled-tools = ["dep:rustc_codegen_spirv", "rustc_codegen_spirv?/use-compiled-tools"]
|
|
skip-toolchain-check = ["rustc_codegen_spirv?/skip-toolchain-check"]
|
|
|
|
watch = ["dep:notify"]
|
|
|
|
[dependencies]
|
|
# See comment in `src/lib.rs` `invoke_rustc` regarding `rustc_codegen_spirv` dep.
|
|
rustc_codegen_spirv.workspace = true
|
|
# HACK(eddyb) see `docs.rs`-related comment above for why this is optional.
|
|
rustc_codegen_spirv.optional = true
|
|
|
|
rustc_codegen_spirv-types.workspace = true
|
|
|
|
memchr = "2.4"
|
|
raw-string = "0.3.5"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
|
|
notify = { version = "5.0.0-pre.11", optional = true }
|