Cargo Features

[dependencies]
wgpu-types = { version = "28.0.0", default-features = false, features = ["std", "strict_asserts", "fragile-send-sync-non-atomic-wasm", "serde", "counters", "trace", "web"] }
default = std

The std feature is set by default whenever wgpu-types is added without default-features = false somewhere in the dependency tree.

std default trace?

Enables std of optional js-sys and optional web-sys

strict_asserts
fragile-send-sync-non-atomic-wasm

Affects send_sync::WasmNotSend, send_sync::WasmNotSync

serde

Enables serde, serde of bitflags

counters

Enables some internal instrumentation for debugging purposes.

trace = std

Enables variants of Trace other than Trace::Off

web

Enable web-specific dependencies for wasm.

Enables js-sys and web-sys

Affects external_image::CopyExternalImageSourceInfo, external_image::ExternalImageSource