-
Notifications
You must be signed in to change notification settings - Fork 5
/
Cargo.toml
142 lines (130 loc) · 3.84 KB
/
Cargo.toml
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
[workspace]
members = [
"math/algebra",
"math/geometry",
"math/statistics",
"utility/reactive",
"utility/reactive-derive",
"utility/reactive-stream",
"utility/reactive-query",
"utility/query",
"utility/arena",
"utility/dyn-downcast",
"utility/storage",
"utility/abstract-tree",
"utility/abstract-graph",
"utility/database",
"utility/heap-tools",
"utility/interning",
"utility/widget",
"utility/fast-hash-collection",
"content/animation",
"content/color",
"content/mesh/core",
"content/mesh/generator",
"content/mesh/simplification",
"content/mesh/gpu-system",
"content/mesh/segmentation",
"content/mesh/lod-graph",
"content/texture/core",
"content/texture/types",
"content/texture/packer",
"content/texture/gpu-base",
"content/texture/gpu-process",
"content/texture/gpu-system",
"content/texture/loader",
"content/lighting/core",
"content/lighting/ltc",
"content/lighting/ibl/core",
"content/lighting/ibl/gpu",
"content/lighting/transport",
"content/lighting/punctual",
"content/lighting/gpu-system/shadow-map",
"content/lighting/gpu-system/lighting-system",
"content/space",
"content/fontext",
"content/canvas/core",
"content/canvas/gpu",
"shader/api",
"shader/derive",
"shader/backends/naga",
"shader/library",
"shader/parallel-compute",
"shader/task-graph",
"shader/ray-tracing",
"scene/core",
"scene/rendering/gpu-base",
"scene/rendering/gpu-gles",
"scene/rendering/gpu-indirect",
"scene/io/obj/loader",
"scene/io/gltf/loader",
"scene/io/gltf/exporter",
"scene/geometry-query",
"platform/event-input",
"platform/graphics/webgpu",
"platform/graphics/webgpu-reactive-utils",
"extension/controller",
"extension/view-override-model",
"extension/barycentric-solid-line",
"extension/scene-debug-helper",
"extension/gui-3d",
"extension/state-override",
"extension/infinity-plane",
"extension/wide-line",
"extension/gizmo",
"application/viewer",
]
# https://doc.rust-lang.org/nightly/cargo/reference/features.html#feature-resolver-version-2
resolver = "2"
# https://rust-lang.github.io/rfcs/2906-cargo-workspace-deduplicate.html
[workspace.dependencies]
rayon = "1.7.0"
bitflags = "2.2"
bytemuck = { version = "1.4.1", features = ["derive"] }
dyn-clone = "1.0.5"
dashmap = { version = "5.5.3", features = ["rayon"] }
futures = "0.3.25"
log = "0.4"
once_cell = "1.4.0"
paste = "1.0.2"
pin-project = "1.0.12"
smallvec = "1.9.0"
winit = "0.30.5"
derivative = "2.2.0"
proc-macro2 = "1.0.4"
quote = "1.0.2"
syn = { version = "1.0.11", features = ["full"] }
tracing = "0.1"
rand = "0.8.5"
pollster = { version = "0.3.0", features = ["macro"] }
# https://doc.rust-lang.org/cargo/reference/profiles.html
# currently our implementation not provide panic safety and panic recovery
# and also, enable unwinding support is bad for performance and binary size
[profile.dev]
panic = "abort"
[profile.release]
panic = "abort"
# used when you are profiling in release but want debug symbol enabled
[profile.profiling]
debug = true
inherits = "release"
[patch.crates-io]
# wgpu = { path = "../references/wgpu/wgpu" }
# wgpu-types = { path = "../references/wgpu/wgpu-types" }
# wgpu-core = { path = "../references/wgpu/wgpu-core" }
# wgpu-hal = { path = "../references/wgpu/wgpu-hal" }
# naga = { path = "../references/wgpu/naga" }
# https://github.com/rust-lang/rfcs/blob/master/text/3389-manifest-lint.md
[workspace.lints.clippy]
# we don't care the performance win if the Arc could be replaced by Rc
arc_with_non_send_sync = "allow"
type_complexity = "allow"
box_default = "allow"
too_many_arguments = "allow"
# we may copy code from f64 codebase to f32 type, f32 may upgrate to f64 in future
excessive_precision = "allow"
# i know it's bad but..
missing_transmute_annotations = "allow"
[workspace.lints.rust]
# we trust incomplete rust feature than unsafe workaround
incomplete_features = "allow"