mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 14:01:08 +01:00
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
115 lines
3.3 KiB
TOML
115 lines
3.3 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_trace"
|
|
harness = true
|
|
|
|
[[test]]
|
|
name = "wgpu-validation"
|
|
harness = true
|
|
|
|
[features]
|
|
webgl = []
|
|
# This feature is not actually used by this package, but it being present somewhere in the workspace
|
|
# allows us to force the build to have profiling code enabled so we can test that configuration.
|
|
test-build-with-profiling = ["profiling/type-check"]
|
|
|
|
# Note that even though this is a package of tests and a library of tests, there is a split of
|
|
# [depenencies] and [dev-dependencies]. This is because keeping as many deps as possible as
|
|
# dev-dependencies will make the dependency graph just a bit shallower, and makes
|
|
# `cargo clippy -- -Wunused-crate-dependencies` give fewer false positives.
|
|
[dependencies]
|
|
# Passthrough backend uses as_hal for the GLES backend, and there's not a great way to cfg-gate that.
|
|
# These are all enabled for any testing on CI anyway, and won't do anything if no devices are detected.
|
|
wgpu = { workspace = true, features = ["noop", "gles", "webgl", "angle"] }
|
|
wgpu-core = { workspace = true, features = ["trace"] }
|
|
wgpu-hal = { workspace = true, features = ["validation_canary"] }
|
|
wgpu-macros.workspace = true
|
|
wgpu-types.workspace = true
|
|
naga = { workspace = true, features = [
|
|
"spv-out",
|
|
"wgsl-out",
|
|
"hlsl-out",
|
|
"msl-out",
|
|
"glsl-out",
|
|
] }
|
|
|
|
anyhow.workspace = true
|
|
arrayvec.workspace = true
|
|
bitflags.workspace = true
|
|
bytemuck.workspace = true
|
|
cfg-if.workspace = true
|
|
ctor.workspace = true
|
|
futures-lite.workspace = true
|
|
libtest-mimic.workspace = true
|
|
log.workspace = true
|
|
png.workspace = true
|
|
pollster.workspace = true
|
|
profiling.workspace = true
|
|
raw-window-handle.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
|
|
[dev-dependencies]
|
|
approx.workspace = true
|
|
glam.workspace = true
|
|
half = { workspace = true, features = ["bytemuck", "std"] }
|
|
itertools.workspace = true
|
|
image.workspace = true
|
|
nanorand.workspace = true
|
|
parking_lot.workspace = true
|
|
strum = { workspace = true, features = ["derive"] }
|
|
trybuild.workspace = true
|
|
|
|
# Non-Webassembly
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
# Cargo-metadata doesn't compile on wasm due to old cargo-util-schemas dependency.
|
|
cargo_metadata.workspace = true
|
|
env_logger.workspace = true
|
|
parking_lot = { workspace = true, features = ["deadlock_detection"] }
|
|
|
|
[target.'cfg(not(any(target_arch = "wasm32", miri)))'.dependencies]
|
|
nv-flip.workspace = true
|
|
|
|
# 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]
|
|
bool_assert_comparison = "allow"
|
|
disallowed_types = "allow"
|