Debian Codegraph @

third_party/rust/wgpu-types/Cargo.toml

raw
1 # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
2 #
3 # When uploading crates to the registry Cargo will automatically
4 # "normalize" Cargo.toml files for maximal compatibility
5 # with all versions of Cargo and also rewrite `path` dependencies
6 # to registry (e.g., crates.io) dependencies.
7 #
8 # If you are reading this file be aware that the original Cargo.toml
9 # will likely look very different (and much more reasonable).
10 # See Cargo.toml.orig for the original contents.
11
12 [package]
13 edition = "2021"
14 rust-version = "1.82.0"
15 name = "wgpu-types"
16 version = "25.0.0"
17 authors = ["gfx-rs developers"]
18 build = false
19 autolib = false
20 autobins = false
21 autoexamples = false
22 autotests = false
23 autobenches = false
24 description = "Common types and utilities for wgpu, the cross-platform, safe, pure-rust graphics API"
25 homepage = "https://wgpu.rs/"
26 readme = false
27 keywords = ["graphics"]
28 license = "MIT OR Apache-2.0"
29 repository = "https://github.com/gfx-rs/wgpu"
30
31 [package.metadata.docs.rs]
32 all-features = true
33 rustdoc-args = [
34 "--cfg",
35 "docsrs",
36 ]
37 targets = [
38 "x86_64-unknown-linux-gnu",
39 "x86_64-apple-darwin",
40 "x86_64-pc-windows-msvc",
41 "wasm32-unknown-unknown",
42 ]
43
44 [features]
45 counters = []
46 default = ["std"]
47 fragile-send-sync-non-atomic-wasm = []
48 serde = [
49 "dep:serde",
50 "bitflags/serde",
51 ]
52 std = [
53 "js-sys/std",
54 "web-sys/std",
55 "thiserror/std",
56 ]
57 strict_asserts = []
58 trace = ["std"]
59
60 [lib]
61 name = "wgpu_types"
62 path = "src/lib.rs"
63
64 [dependencies.bitflags]
65 version = "2.9"
66 features = ["serde"]
67
68 [dependencies.bytemuck]
69 version = "1.22"
70 features = [
71 "extern_crate_alloc",
72 "min_const_generics",
73 "derive",
74 ]
75
76 [dependencies.log]
77 version = "0.4.21"
78
79 [dependencies.serde]
80 version = "1.0.219"
81 features = [
82 "alloc",
83 "derive",
84 ]
85 optional = true
86 default-features = false
87
88 [dependencies.thiserror]
89 version = "2.0.3"
90 optional = true
91 default-features = false
92
93 [dev-dependencies.serde]
94 version = "1.0.219"
95 features = ["derive"]
96 default-features = false
97
98 [dev-dependencies.serde_json]
99 version = "1.0.118"
100
101 [target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
102 version = "0.3.77"
103 default-features = false
104
105 [target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
106 version = "0.3.77"
107 features = [
108 "ImageBitmap",
109 "ImageData",
110 "HtmlImageElement",
111 "HtmlVideoElement",
112 "HtmlCanvasElement",
113 "OffscreenCanvas",
114 "VideoFrame",
115 ]
116 default-features = false
117
118 [lints.clippy]
119 alloc_instead_of_core = "warn"
120 std_instead_of_alloc = "warn"
121 std_instead_of_core = "warn"
122
123 [lints.rust.unexpected_cfgs]
124 level = "warn"
125 priority = 0
126 check-cfg = ["cfg(web_sys_unstable_apis)"]