# 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.87" name = "wgpu-types" version = "29.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" repository = "https://github.com/gfx-rs/wgpu" [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"] exhaust = ["dep:exhaust"] fragile-send-sync-non-atomic-wasm = [] serde = [ "dep:serde", "bitflags/serde", ] std = [ "js-sys?/std", "web-sys?/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" [dependencies.bytemuck] version = "1.22" features = [ "extern_crate_alloc", "min_const_generics", "derive", ] [dependencies.exhaust] version = "0.2" optional = true [dependencies.log] version = "0.4.29" [dependencies.raw-window-handle] version = "0.6.2" default-features = false [dependencies.serde] version = "1.0.225" features = [ "alloc", "derive", ] optional = true default-features = false [dev-dependencies.exhaust] version = "0.2" [dev-dependencies.hashbrown] version = "0.16" features = [ "default-hasher", "inline-more", ] default-features = false [dev-dependencies.serde] version = "1.0.225" features = ["derive"] default-features = false [dev-dependencies.serde_json] version = "1.0.143" [target.'cfg(target_arch = "wasm32")'.dependencies.js-sys] version = "0.3.85" optional = true default-features = false [target.'cfg(target_arch = "wasm32")'.dependencies.web-sys] version = "0.3.85" 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)"]