-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCargo.toml
More file actions
103 lines (87 loc) · 3.5 KB
/
Cargo.toml
File metadata and controls
103 lines (87 loc) · 3.5 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
[package]
name = "lambda-rs"
description = "A framework for building cross platform graphics & compute applications."
version = "2023.1.30"
edition = "2021"
license = "MIT"
keywords = ["graphics", "compute"]
repository = "https://github.com/lambda-sh/lambda"
[lib]
name = "lambda"
path = "src/lib.rs"
[dependencies]
lambda-rs-platform = { path = "../lambda-rs-platform", version = "2023.1.30"}
lambda-rs-logging = { path = "../lambda-rs-logging", version = "2023.1.30" }
[dev-dependencies]
cargo-audit = "0.16.0"
mockall = "0.14.0"
[features]
default=["with-wgpu"]
with-vulkan=["with-wgpu", "lambda-rs-platform/wgpu-with-vulkan"]
with-opengl=["with-wgpu", "lambda-rs-platform/wgpu-with-gl"]
with-dx11=["with-wgpu"]
with-dx12=["with-wgpu", "lambda-rs-platform/wgpu-with-dx12"]
with-metal=["with-wgpu", "lambda-rs-platform/wgpu-with-metal"]
with-wgpu=["lambda-rs-platform/wgpu"]
with-wgpu-vulkan=["with-wgpu", "lambda-rs-platform/wgpu-with-vulkan"]
with-wgpu-metal=["with-wgpu", "lambda-rs-platform/wgpu-with-metal"]
with-wgpu-dx12=["with-wgpu", "lambda-rs-platform/wgpu-with-dx12"]
with-wgpu-gl=["with-wgpu", "lambda-rs-platform/wgpu-with-gl"]
# ---------------------------------- AUDIO ------------------------------------
# Umbrella features
audio = ["audio-output-device", "audio-sound-buffer", "audio-playback"]
# Granular feature flags
audio-output-device = ["lambda-rs-platform/audio-device"]
audio-sound-buffer-wav = ["lambda-rs-platform/audio-decode-wav"]
audio-sound-buffer-vorbis = ["lambda-rs-platform/audio-decode-vorbis"]
audio-playback = ["audio-output-device", "audio-sound-buffer"]
# Umbrella feature
audio-sound-buffer = [
"audio-sound-buffer-wav",
"audio-sound-buffer-vorbis",
]
# ------------------------------ RENDER VALIDATION -----------------------------
# Granular, opt-in validation flags for release builds. Debug builds enable
# all validations unconditionally via `debug_assertions`.
# Umbrella features
# - render-validation: enable common, configuration-time checks and logs
# - render-validation-strict: includes render-validation + per-draw checks
# - render-validation-all: enables all validations including device probing
render-validation = [
"render-validation-msaa",
"render-validation-depth",
"render-validation-stencil",
"render-validation-pass-compat",
"render-validation-render-targets",
]
render-validation-strict = [
"render-validation",
"render-validation-encoder",
]
render-validation-all = [
"render-validation-strict",
"render-validation-device",
"render-validation-instancing",
]
# Granular feature flags
# - msaa: sample count validity and mismatch logging
# - depth: depth clear clamping log and depth advisories
# - stencil: stencil/format upgrade advisories
# - pass-compat: color/depth presence compatibility checks at SetPipeline
# - device: device/format probing advisories (may consult platform)
# - encoder: per-draw/encoder-time checks (most expensive)
render-validation-msaa = []
render-validation-depth = []
render-validation-stencil = []
render-validation-pass-compat = []
render-validation-device = []
render-validation-encoder = []
render-validation-instancing = []
render-validation-render-targets = []
# --------------------------------- PHYSICS -----------------------------------
# Umbrella features (disabled by default)
physics-2d = ["lambda-rs-platform/physics-2d"]
# ---------------------------- PLATFORM DEPENDENCIES ---------------------------
# Linux dev-dependencies.
[target.'cfg(all(unix, not(target_os = "macos")))'.dev-dependencies]
cargo-tarpaulin = "=0.19.1"