Source code

Revision control

Copy as Markdown

Other Tools

# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.
[package]
edition = "2021"
rust-version = "1.82.0"
name = "wgpu-types"
version = "26.0.0"
authors = ["gfx-rs developers"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Common types and utilities for wgpu, the cross-platform, safe, pure-rust graphics API"
homepage = "https://wgpu.rs/"
readme = false
keywords = ["graphics"]
license = "MIT OR Apache-2.0"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
targets = [
"x86_64-unknown-linux-gnu",
"x86_64-apple-darwin",
"x86_64-pc-windows-msvc",
"wasm32-unknown-unknown",
]
[features]
counters = []
default = ["std"]
fragile-send-sync-non-atomic-wasm = []
serde = [
"dep:serde",
"bitflags/serde",
]
std = [
"js-sys?/std",
"web-sys?/std",
"thiserror/std",
]
strict_asserts = []
trace = ["std"]
web = [
"dep:js-sys",
"dep:web-sys",
]
[lib]
name = "wgpu_types"
path = "src/lib.rs"
[dependencies.bitflags]
version = "2.9"
features = ["serde"]
[dependencies.bytemuck]
version = "1.22"
features = [
"extern_crate_alloc",
"min_const_generics",
"derive",
]
[dependencies.log]
version = "0.4.21"
[dependencies.serde]
version = "1.0.219"
features = [
"alloc",
"derive",
]
optional = true
default-features = false
[dependencies.thiserror]
version = "2.0.11"
optional = true
default-features = false
[dev-dependencies.serde]
version = "1.0.219"
features = ["derive"]
default-features = false
[dev-dependencies.serde_json]
version = "1.0.118"
[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3.77"
optional = true
default-features = false
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3.77"
features = [
"ImageBitmap",
"ImageData",
"HtmlImageElement",
"HtmlVideoElement",
"HtmlCanvasElement",
"OffscreenCanvas",
"VideoFrame",
]
optional = true
default-features = false
[lints.clippy]
alloc_instead_of_core = "warn"
std_instead_of_alloc = "warn"
std_instead_of_core = "warn"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(web_sys_unstable_apis)"]