-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
181 lines (143 loc) · 4.45 KB
/
Cargo.toml
File metadata and controls
181 lines (143 loc) · 4.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
[workspace]
members = [".", "python", "ffi", "derive"]
resolver = "2"
[package]
name = "goldy"
version = "0.1.0"
edition = "2021"
license = "MIT"
description = "Goldy - Modern Graphics Library"
repository = "https://github.com/koubaa/goldy"
keywords = ["gpu", "graphics", "vulkan", "rendering"]
categories = ["graphics", "rendering"]
# Allow unexpected_cfgs for objc crate's deprecated cargo-clippy cfg checks
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ["cfg(feature, values(\"cargo-clippy\"))"] }
[dependencies]
goldy_derive = { version = "0.1.0", path = "derive" }
# Vulkan bindings (native only)
ash = { version = "0.38", optional = true }
# Dynamic library loading for Slang compiler
libloading = "0.9"
# Error handling
anyhow = "1.0"
thiserror = "2.0"
# Logging and instrumentation
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"], optional = true }
# Utilities
bitflags = "2.6"
bytemuck = { version = "1.21", features = ["derive"] }
# Optional: `update-screenshots` binary only
image = { version = "0.25", optional = true }
dirs = "6.0"
scopeguard = "1.2"
# Windowing / Surface support
raw-window-handle = "0.6"
winit = { version = "0.30", optional = true }
# DX12 dependencies (Windows only)
[target.'cfg(windows)'.dependencies]
windows = { version = "0.62", optional = true, features = [
"Win32_Graphics_Direct3D12",
"Win32_Graphics_Direct3D",
"Win32_Graphics_Direct3D_Dxc",
"Win32_Graphics_Direct3D_Fxc",
"Win32_Graphics_Dxgi_Common",
"Win32_Graphics_Dxgi",
"Win32_Foundation",
"Win32_Security",
"Win32_System_Threading",
"Win32_UI_WindowsAndMessaging",
] }
gpu-allocator = { version = "0.28", optional = true, features = ["d3d12"] }
windows-core = { version = "0.62", optional = true }
# Metal dependencies (macOS only)
[target.'cfg(target_os = "macos")'.dependencies]
metal = { version = "0.33", optional = true }
cocoa = { version = "0.26", optional = true }
objc = { version = "0.2", optional = true }
core-graphics-types = { version = "0.2", optional = true }
foreign-types = { version = "0.5", optional = true }
block = { version = "0.1", optional = true }
[dev-dependencies]
# PNG output for examples / integration tests that save images
image = "0.25"
# FLIP perceptual image comparison for screenshot tests
nv-flip = "0.1"
png = "0.18"
# Tracing subscriber for examples
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# Windowing for interactive examples
winit = "0.30"
[features]
# Default enables all platform-appropriate backends
# On macOS: metal is used, on Windows: dx12/vulkan, on Linux: vulkan
default = ["vulkan", "metal", "dx12", "instrumentation"]
vulkan = ["dep:ash"]
dx12 = ["dep:windows", "dep:gpu-allocator", "dep:windows-core"]
metal = ["dep:metal", "dep:cocoa", "dep:objc", "dep:core-graphics-types", "dep:foreign-types", "dep:block"]
# Regenerate `tests/screenshots/*.png` via `cargo run --bin update-screenshots --features update-screenshots`
update-screenshots = ["dep:image"]
# Structured instrumentation with named observation points (zero-cost when disabled)
instrumentation = ["dep:tracing-subscriber"]
[[example]]
name = "triangle"
path = "examples/triangle.rs"
[[example]]
name = "digital_clock"
path = "examples/digital_clock.rs"
[[example]]
name = "gradient"
path = "examples/gradient.rs"
[[example]]
name = "plasma"
path = "examples/plasma.rs"
[[example]]
name = "starfield"
path = "examples/starfield.rs"
[[example]]
name = "mandelbrot"
path = "examples/mandelbrot.rs"
[[example]]
name = "bouncing_lines"
path = "examples/bouncing_lines.rs"
[[example]]
name = "spinning_cube"
path = "examples/spinning_cube.rs"
[[example]]
name = "metaballs"
path = "examples/metaballs.rs"
[[example]]
name = "checkerboard"
path = "examples/checkerboard.rs"
[[example]]
name = "instancing"
path = "examples/instancing.rs"
[[example]]
name = "particles"
path = "examples/particles.rs"
[[example]]
name = "waveform"
path = "examples/waveform.rs"
[[example]]
name = "tunnel"
path = "examples/tunnel.rs"
[[example]]
name = "multi_window"
path = "examples/multi_window.rs"
[[example]]
name = "compute_particles"
path = "examples/compute_particles.rs"
[[example]]
name = "game_of_life"
path = "examples/game_of_life.rs"
[[example]]
name = "depth_quads"
path = "examples/depth_quads.rs"
[[example]]
name = "compute_to_surface"
path = "examples/compute_to_surface.rs"
[[bin]]
name = "update-screenshots"
path = "tools/update_screenshots.rs"
required-features = ["update-screenshots"]