-
-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathCargo.toml
More file actions
259 lines (237 loc) · 5.81 KB
/
Copy pathCargo.toml
File metadata and controls
259 lines (237 loc) · 5.81 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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
[package]
name = "csgrs"
version = "0.23.0"
edition = "2024"
description = "Constructive solid geometry (CSG) on meshes composed from hyper geometry crates"
authors = ["Timothy Schmidt <timschmidt@gmail.com>"]
# msrv
rust-version = "1.95.0"
license = "MIT"
repository = "https://github.com/timschmidt/csgrs"
readme = "readme.md"
keywords = ["geometry", "physics", "csg", "slicing", "offsetting"]
categories = ["game-development", "graphics", "mathematics", "simulation", "wasm"]
[package.metadata.docs.rs]
no-default-features = true
features = [
"mesh",
"polygon-mesh",
"sketch",
"stl-io",
"dxf-io",
"obj-io",
"ply-io",
"amf-io",
"gltf-io",
"gerber-io",
"svg-io",
"image-io",
"metaballs",
"sdf",
"offset",
"truetype-text",
"hershey-text",
"wasm",
]
[lib]
crate-type = ["cdylib", "rlib"]
[[bench]]
name = "part_blueprint"
harness = false
[[bench]]
name = "mesh_pipeline"
harness = false
[[bench]]
name = "kernel_comparison"
harness = false
[[bench]]
name = "feature_pipeline"
harness = false
required-features = [
"mesh",
"sketch",
"stl-io",
"dxf-io",
"obj-io",
"ply-io",
"amf-io",
"gltf-io",
"svg-io",
"image-io",
"metaballs",
"sdf",
"offset",
"truetype-text",
"hershey-text",
"bevymesh",
]
[[bench]]
name = "profile_primitives"
harness = false
required-features = ["sketch"]
[profile.release]
opt-level = 3
lto = true
debug = false
debug-assertions = false
overflow-checks = false
[profile.embedded]
inherits = "release"
opt-level = "z"
[dependencies]
# geometry
#alum = "0.6.1"
hypercurve = { version = "0.3.0", path = "../hypercurve", features = ["triangulation"] }
hyperlattice = { version = "0.6.0", path = "../hyperlattice" }
hyperlimit = { version = "0.4.0", path = "../hyperlimit" }
hypermesh = { version = "0.1.0", path = "../hypermesh" }
hyperphysics = { version = "0.3.0", path = "../hyperphysics" }
hyperreal = { version = "0.13.1", path = "../hyperreal", default-features = false, features = ["cached-f64-approx"] }
hypersdf = { version = "0.2.0", path = "../hypersdf", optional = true }
hypertri = { version = "0.4.0", path = "../hypertri", default-features = false, features = ["earcut"] }
# bevy mesh conversion
bevy_mesh = { version = "0.18", optional = true }
bevy_asset = { version = "0.18", optional = true }
wgpu-types = { version = "27", optional = true, default-features = false }
# utils
rayon = { version = "1.10", optional = true }
thiserror = "2.0"
hashbrown = { version = "0.15" }
fast-surface-nets = { version = "0.2.1", optional = true }
either = "1.15"
base64 = { version = "0.22", optional = true }
# doc
#doc-image-embed = "0.2" # fork of https://crates.io/crates/embed-doc-image - should be upstreamed.
# io/load
chrono = { version = "0.4", optional = true }
dxf = { version = "0.6", optional = true }
stl_io = { version = "0.8", optional = true }
image = { version = "0.25", optional = true }
gerber-types = { version = "0.7.0", optional = true }
gerber_parser = { version = "0.4.0", optional = true }
# font
ttf-utils = { version = "0.1", optional = true, package = "ttf-parser-utils"}
ttf-parser = { version = "0.25", optional = true }
hershey = { version = "0.1.2", optional = true }
doc-image-embed = "0.2.1"
# wasm
uuid = { version = "1.18", features = ["js"], optional = true }
wasm-bindgen = { version = "0.2", optional = true }
js-sys = { version = "0.3.81", optional = true }
serde-wasm-bindgen = { version = "0.6.5", optional = true }
serde_json = { version = "1.0.145", optional = true }
serde = { version = "1.0.228", optional = true }
[target.'cfg(target_arch = "wasm32")'.dependencies]
uuid = { version = "1.18", features = ["js"] }
# Keep transitive sibling crates unified while using local path development mode.
[patch.crates-io]
hyperlattice = { path = "../hyperlattice" }
hyperlimit = { path = "../hyperlimit" }
hyperreal = { path = "../hyperreal" }
hypertri = { path = "../hypertri" }
hypersolve = { path = "../hypersolve" }
[features]
default = ["mesh", "polygon-mesh", "sketch", "stl-io", "dxf-io", "obj-io", "ply-io", "amf-io", "gltf-io", "gerber-io", "image-io", "metaballs", "sdf", "truetype-text", "hershey-text"]
dispatch-trace = [
"hypercurve/dispatch-trace",
"hypermesh/dispatch-trace",
"hyperreal/dispatch-trace",
]
parallel = [
"rayon",
"hashbrown/rayon"
]
mesh = [] # Compatibility feature; Mesh is the always-available core carrier.
polygon-mesh = [] # Planar polygon 3D backend; converts explicitly to triangle Mesh geometry.
# Legacy BSP transition features removed after full hypermesh migration.
sketch = [
# hypercurve backed Profile datatype
]
stl-io = [
"stl_io",
]
svg-io = [
"sketch",
"hypercurve/svg",
]
dxf-io = [
"sketch",
"chrono",
"dxf",
]
obj-io = [
# OBJ format support - no external dependencies needed
]
ply-io = [
# PLY format support - no external dependencies needed
]
amf-io = [
# AMF format support - no external dependencies needed
]
gltf-io = [
"base64",
"serde_json",
]
gerber-io = [
"sketch",
"gerber-types",
"gerber_parser",
]
truetype-text = [
"ttf-parser",
"ttf-utils",
]
hershey-text = [
"hershey",
]
image-io = [
"image",
"sketch",
]
metaballs = [
"fast-surface-nets",
]
sdf = [
"fast-surface-nets",
"hypersdf",
]
# Compatibility feature retained for existing consumers. Offset operations are
# native Hypercurve APIs and no longer activate an external geometry backend.
offset = ["sketch"]
bevymesh = [
"dep:bevy_mesh",
"dep:bevy_asset",
"dep:wgpu-types"
]
wasm = [
"mesh",
"polygon-mesh",
"sketch",
"svg-io",
"stl-io",
"amf-io",
"gltf-io",
"sdf",
"uuid",
"wasm-bindgen",
"js-sys",
"serde-wasm-bindgen",
"serde_json",
"serde",
]
[[example]]
name = "readme_renders"
required-features = [
"mesh",
"sketch",
"image-io",
"truetype-text",
"metaballs",
"sdf",
"offset",
]
[dev-dependencies]
gltf = "1.4.1"
ply-rs = "0.1.3"
proptest = "1.9"
quick-xml = "0.39.4"