mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
This will make it easier for contributors to understand the file layout,
at the cost of said layout containing several more nested directories.
I will personally appreciate not having to remember to look for
`root.rs` instead of `main.rs`.
I also renamed the test targets so that they do not *all* share the
superfluous suffix “-test” (test targets live in a different namespace
than other target types and packages, so the name can presume that it
is always known that they are tests).
The Naga snapshot data sets `naga/tests/{in,out}` have been left in
their original positions.
84 lines
1.9 KiB
TOML
84 lines
1.9 KiB
TOML
[package]
|
|
name = "wgpu-test"
|
|
version.workspace = true
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
description = "common code for wgpu tests"
|
|
homepage.workspace = true
|
|
repository.workspace = true
|
|
keywords.workspace = true
|
|
license.workspace = true
|
|
rust-version.workspace = true
|
|
publish = false
|
|
|
|
[[test]]
|
|
name = "wgpu-compile"
|
|
harness = true
|
|
|
|
[[test]]
|
|
name = "wgpu-dependency"
|
|
harness = true
|
|
|
|
[[test]]
|
|
name = "wgpu-gpu"
|
|
harness = false
|
|
|
|
[[test]]
|
|
name = "wgpu-validation"
|
|
harness = true
|
|
|
|
[features]
|
|
webgl = ["wgpu/webgl"]
|
|
|
|
[dependencies]
|
|
wgpu = { workspace = true, features = ["noop"] }
|
|
wgpu-macros.workspace = true
|
|
|
|
anyhow.workspace = true
|
|
arrayvec.workspace = true
|
|
approx.workspace = true
|
|
bitflags.workspace = true
|
|
bytemuck.workspace = true
|
|
cargo_metadata.workspace = true
|
|
cfg-if.workspace = true
|
|
ctor.workspace = true
|
|
futures-lite.workspace = true
|
|
glam.workspace = true
|
|
half = { workspace = true, features = ["bytemuck"] }
|
|
itertools.workspace = true
|
|
image.workspace = true
|
|
libtest-mimic.workspace = true
|
|
log.workspace = true
|
|
parking_lot.workspace = true
|
|
png.workspace = true
|
|
pollster.workspace = true
|
|
profiling.workspace = true
|
|
serde_json.workspace = true
|
|
serde.workspace = true
|
|
strum = { workspace = true, features = ["derive"] }
|
|
trybuild.workspace = true
|
|
|
|
# Non-Webassembly
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
env_logger.workspace = true
|
|
nv-flip.workspace = true
|
|
parking_lot = { workspace = true, features = ["deadlock_detection"] }
|
|
|
|
# Webassembly
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
console_log.workspace = true
|
|
wasm-bindgen.workspace = true
|
|
web-sys = { workspace = true }
|
|
|
|
# Webassembly Dev Dependencies
|
|
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
|
|
image.workspace = true
|
|
js-sys.workspace = true
|
|
wasm-bindgen-futures.workspace = true
|
|
wasm-bindgen-test.workspace = true
|
|
wasm-bindgen.workspace = true
|
|
web-sys = { workspace = true, features = ["CanvasRenderingContext2d", "Blob"] }
|
|
|
|
[lints.clippy]
|
|
disallowed_types = "allow"
|