Debian Codegraph @

third_party/rust/gpu-allocator/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.70"
15 name = "gpu-allocator"
16 version = "0.27.0"
17 authors = ["Traverse Research <[email protected]>"]
18 include = [
19 "/README.md",
20 "/LICENSE-*",
21 "/src",
22 "/examples",
23 ]
24 description = "Memory allocator for GPU memory in Vulkan and DirectX 12"
25 homepage = "https://github.com/Traverse-Research/gpu-allocator"
26 documentation = "https://docs.rs/gpu-allocator/"
27 readme = "README.md"
28 keywords = [
29 "vulkan",
30 "memory",
31 "allocator",
32 ]
33 categories = [
34 "rendering",
35 "rendering::graphics-api",
36 ]
37 license = "MIT OR Apache-2.0"
38 repository = "https://github.com/Traverse-Research/gpu-allocator"
39
40 [package.metadata.docs.rs]
41 all-features = true
42
43 [[example]]
44 name = "vulkan-buffer"
45 required-features = [
46 "vulkan",
47 "ash/loaded",
48 ]
49
50 [[example]]
51 name = "d3d12-buffer"
52 required-features = [
53 "d3d12",
54 "public-winapi",
55 ]
56
57 [[example]]
58 name = "d3d12-buffer-winrs"
59 required-features = ["d3d12"]
60
61 [[example]]
62 name = "metal-buffer"
63 required-features = ["metal"]
64
65 [dependencies.ash]
66 version = "0.38"
67 features = ["debug"]
68 optional = true
69 default-features = false
70
71 [dependencies.egui]
72 version = ">=0.24, <=0.27"
73 optional = true
74 default-features = false
75
76 [dependencies.egui_extras]
77 version = ">=0.24, <=0.27"
78 optional = true
79 default-features = false
80
81 [dependencies.log]
82 version = "0.4"
83
84 [dependencies.presser]
85 version = "0.3"
86
87 [dependencies.thiserror]
88 version = "1.0"
89
90 [dev-dependencies.ash]
91 version = "0.38"
92 features = [
93 "debug",
94 "loaded",
95 ]
96 default-features = false
97
98 [dev-dependencies.env_logger]
99 version = "0.10"
100
101 [features]
102 d3d12 = ["dep:windows"]
103 default = [
104 "d3d12",
105 "vulkan",
106 ]
107 metal = ["dep:metal"]
108 public-winapi = ["dep:winapi"]
109 visualizer = [
110 "dep:egui",
111 "dep:egui_extras",
112 ]
113 vulkan = ["dep:ash"]
114
115 [target."cfg(any(target_os = \"macos\", target_os = \"ios\"))".dependencies.metal]
116 version = "0.29.0"
117 features = [
118 "link",
119 "dispatch",
120 ]
121 optional = true
122 default-features = false
123
124 [target."cfg(windows)".dependencies.winapi]
125 version = "0.3.9"
126 features = [
127 "d3d12",
128 "winerror",
129 "impl-default",
130 "impl-debug",
131 ]
132 optional = true
133
134 [target."cfg(windows)".dependencies.windows]
135 version = ">=0.53,<=0.58"
136 features = [
137 "Win32_Graphics_Direct3D12",
138 "Win32_Graphics_Dxgi_Common",
139 ]
140 optional = true
141
142 [target."cfg(windows)".dev-dependencies.winapi]
143 version = "0.3.9"
144 features = [
145 "d3d12",
146 "d3d12sdklayers",
147 "dxgi1_6",
148 "winerror",
149 "impl-default",
150 "impl-debug",
151 "winuser",
152 "windowsx",
153 "libloaderapi",
154 ]
155
156 [target."cfg(windows)".dev-dependencies.windows]
157 version = "0.58"
158 features = [
159 "Win32_Graphics_Direct3D",
160 "Win32_Graphics_Direct3D12",
161 "Win32_Graphics_Dxgi_Common",
162 ]