2020-09-11 11:09:06 +00:00
|
|
|
[workspace]
|
2021-10-14 14:38:15 +00:00
|
|
|
resolver = "2"
|
2020-09-11 11:09:06 +00:00
|
|
|
members = [
|
2020-10-30 18:38:47 +00:00
|
|
|
"examples/runners/cpu",
|
|
|
|
"examples/runners/ash",
|
|
|
|
"examples/runners/wgpu",
|
2021-05-21 12:09:56 +00:00
|
|
|
"examples/runners/wgpu/builder",
|
2022-02-07 12:39:35 +00:00
|
|
|
"examples/shaders/reduce",
|
2020-10-30 18:38:47 +00:00
|
|
|
"examples/shaders/sky-shader",
|
|
|
|
"examples/shaders/simplest-shader",
|
2020-11-10 08:10:21 +00:00
|
|
|
"examples/shaders/compute-shader",
|
2020-12-15 11:33:24 +00:00
|
|
|
"examples/shaders/mouse-shader",
|
2021-03-29 15:59:03 +00:00
|
|
|
"examples/multibuilder",
|
2020-11-13 08:57:12 +00:00
|
|
|
|
2020-11-02 10:26:10 +00:00
|
|
|
"crates/rustc_codegen_spirv",
|
2022-03-30 07:07:14 +00:00
|
|
|
"crates/rustc_codegen_spirv-types",
|
2020-11-02 10:26:10 +00:00
|
|
|
"crates/spirv-builder",
|
|
|
|
"crates/spirv-std",
|
2021-04-28 07:47:40 +00:00
|
|
|
"crates/spirv-std/shared",
|
|
|
|
"crates/spirv-std/macros",
|
2021-03-18 17:16:21 +00:00
|
|
|
|
|
|
|
"tests",
|
2021-03-19 17:34:08 +00:00
|
|
|
"tests/deps-helper",
|
2020-09-11 11:09:06 +00:00
|
|
|
]
|
2021-02-19 14:01:24 +00:00
|
|
|
|
2022-11-22 14:28:53 +00:00
|
|
|
[workspace.package]
|
2023-07-25 09:25:05 +00:00
|
|
|
version = "0.9.0"
|
2022-11-22 14:28:53 +00:00
|
|
|
authors = ["Embark <opensource@embark-studios.com>"]
|
2022-11-30 01:53:11 +00:00
|
|
|
edition = "2021"
|
2022-11-22 14:28:53 +00:00
|
|
|
license = "MIT OR Apache-2.0"
|
|
|
|
repository = "https://github.com/EmbarkStudios/rust-gpu"
|
|
|
|
|
2024-09-10 15:48:17 +00:00
|
|
|
[workspace.lints.rust]
|
|
|
|
unexpected_cfgs = { level = "allow", check-cfg = ['cfg(target_arch, values("spirv"))'] }
|
|
|
|
|
2022-11-22 14:28:53 +00:00
|
|
|
[workspace.dependencies]
|
2024-02-07 07:46:23 +00:00
|
|
|
spirv-builder = { path = "./crates/spirv-builder", version = "=0.9.0", default-features = false }
|
2023-07-25 09:25:05 +00:00
|
|
|
spirv-std = { path = "./crates/spirv-std", version = "=0.9.0" }
|
|
|
|
spirv-std-types = { path = "./crates/spirv-std/shared", version = "=0.9.0" }
|
|
|
|
spirv-std-macros = { path = "./crates/spirv-std/macros", version = "=0.9.0" }
|
2024-02-07 07:46:23 +00:00
|
|
|
spirv-tools = { version = "0.10", default-features = false }
|
2023-07-25 09:25:05 +00:00
|
|
|
rustc_codegen_spirv = { path = "./crates/rustc_codegen_spirv", version = "=0.9.0", default-features = false }
|
|
|
|
rustc_codegen_spirv-types = { path = "./crates/rustc_codegen_spirv-types", version = "=0.9.0" }
|
2022-11-22 14:28:53 +00:00
|
|
|
|
2024-02-26 11:23:24 +00:00
|
|
|
# External dependencies that need to be mentioned more than once.
|
|
|
|
num-traits = { version = "0.2.15", default-features = false }
|
2024-09-10 15:48:17 +00:00
|
|
|
glam = { version = ">=0.22, <=0.29", default-features = false }
|
2024-02-26 11:23:24 +00:00
|
|
|
|
2021-03-29 07:01:47 +00:00
|
|
|
# Enable incremental by default in release mode.
|
|
|
|
[profile.release]
|
|
|
|
incremental = true
|
2021-03-29 01:29:49 +00:00
|
|
|
# HACK(eddyb) this is the default but without explicitly specifying it, Cargo
|
2021-03-29 07:01:47 +00:00
|
|
|
# will treat the identical settings in `[profile.release.build-override]` below
|
2021-03-29 01:29:49 +00:00
|
|
|
# as different sets of `rustc` flags and will not reuse artifacts between them.
|
2021-03-29 07:01:47 +00:00
|
|
|
codegen-units = 256
|
|
|
|
|
|
|
|
# Compile build-dependencies in release mode with the same settings
|
|
|
|
# as regular dependencies (including the incremental enabled above).
|
|
|
|
[profile.release.build-override]
|
|
|
|
opt-level = 3
|
|
|
|
incremental = true
|
2022-11-24 14:47:23 +00:00
|
|
|
codegen-units = 256
|