# 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" name = "wgpu-core" version = "0.16.0" authors = ["wgpu developers"] description = "WebGPU core logic on wgpu-hal" homepage = "https://wgpu.rs/" 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", ] [lib] [dependencies] arrayvec = "0.7" bit-vec = "0.6" bitflags = "2" codespan-reporting = "0.11" log = "0.4" parking_lot = ">=0.11,<0.13" rustc-hash = "1.1" smallvec = "1" thiserror = "1" [dependencies.hal] version = "0.16" path = "../wgpu-hal" package = "wgpu-hal" [dependencies.naga] version = "0.12.0" git = "https://github.com/gfx-rs/naga" rev = "b99d58ea435090e561377949f428bce2c18451bb" features = [ "clone", "span", "validate", ] [dependencies.profiling] version = "1" default-features = false [dependencies.raw-window-handle] version = "0.5" optional = true [dependencies.ron] version = "0.8" optional = true [dependencies.serde] version = "1" features = ["serde_derive"] optional = true [dependencies.wgt] version = "0.16" path = "../wgpu-types" package = "wgpu-types" [features] angle = ["hal/gles"] default = [] dx11 = ["hal/dx11"] dx12 = ["hal/dx12"] gles = ["hal/gles"] id32 = [] metal = ["hal/metal"] renderdoc = ["hal/renderdoc"] replay = [ "serde", "wgt/replay", "arrayvec/serde", "naga/deserialize", ] serial-pass = [ "serde", "wgt/serde", "arrayvec/serde", ] strict_asserts = ["wgt/strict_asserts"] trace = [ "ron", "serde", "wgt/trace", "arrayvec/serde", "naga/serialize", ] vulkan = ["hal/vulkan"] wgsl = ["naga/wgsl-in"] [target."cfg(all(target_arch = \"wasm32\", not(target_os = \"emscripten\")))".dependencies.web-sys] version = "0.3.60" features = [ "HtmlCanvasElement", "OffscreenCanvas", ]