Can't put GPU tests in the `-shader` crate because `spirv-builder` doesn't handle recursive invocation, but should migrate the CPU tests there eventually.
38 lines
1.2 KiB
TOML
38 lines
1.2 KiB
TOML
[workspace]
|
|
members = [
|
|
"crates/flare-lib",
|
|
"crates/flare-shader",
|
|
"crates/flare-xml"
|
|
]
|
|
resolver = "2"
|
|
|
|
[workspace.dependencies]
|
|
bytemuck = { version = "1.21.0", features = ["derive"] }
|
|
futures = "0.3.31"
|
|
futures-executor = "0.3.31"
|
|
glam = { version = "0.29.2", features = ["cuda", "bytemuck"] }
|
|
serde = { version = "1.0.216", features = ["derive"] }
|
|
serde-xml-rs = "0.6.0"
|
|
spirv-std = { git = "https://github.com/rust-gpu/rust-gpu", rev = "1d76d59471eef54da481d63cfb9cbf3a5daded6c" }
|
|
spirv-builder = { git = "https://github.com/rust-gpu/rust-gpu", rev = "1d76d59471eef54da481d63cfb9cbf3a5daded6c" }
|
|
thiserror = "2.0.8"
|
|
wgpu = { version = "23.0.1", features = ["spirv"] }
|
|
xml-rs = "0.8.24"
|
|
|
|
[workspace.lints.clippy]
|
|
# SPIR-V codegen doesn't handle `.iter().take(count).skip(offset)` properly
|
|
needless_range_loop = "allow"
|
|
|
|
[workspace.lints.rust.unexpected_cfgs]
|
|
# Rust (properly) doesn't recognize the spirv architecture
|
|
level = "warn"
|
|
check-cfg = ['cfg(target_arch, values("spirv"))']
|
|
|
|
# Compile build-dependencies in release mode with
|
|
# the same settings as regular dependencies.
|
|
[profile.release.build-override]
|
|
opt-level = 3
|
|
codegen-units = 16
|
|
[profile.dev.build-override]
|
|
opt-level = 3
|