forked from timschmidt/csgrs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
164 lines (148 loc) · 3.97 KB
/
Cargo.toml
File metadata and controls
164 lines (148 loc) · 3.97 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
[package]
name = "csgrs"
version = "0.20.1"
edition = "2024"
description = "Constructive solid geometry (CSG) on meshes using BSP trees in Rust"
authors = ["Timothy Schmidt <timschmidt@gmail.com>"]
# msrv
rust-version = "1.85.1"
license = "MIT"
repository = "https://github.com/timschmidt/csgrs"
readme = "readme.md"
keywords = ["geometry", "physics", "csg", "slicing", "offsetting"]
categories = ["game-development", "graphics", "mathematics", "simulation", "wasm"]
[lib]
crate-type = ["cdylib", "rlib"]
[profile.release]
opt-level = 3
lto = true
debug = false
debug-assertions = false
overflow-checks = false
[profile.embedded]
inherits = "release"
opt-level = "z"
[dependencies]
# geometry
nalgebra = "0.33"
#alum = "0.6.1"
#curvo = "0.1.52"
robust = { version = "1.1.0", default-features = false, features = ["no_std"] }
geo = { version = "0.29.3", default-features = false }
geo-buf = { version = "0.1.0", optional = true } # straight-skeleton offsetting iOverlay can handle this in v2
#geo-booleanop = "0.3.2" # alternative boolean implementation has fewer dependencies
chull = { version = "0.2.4", optional = true }
rapier3d-f64 = { version = "0.24.0", optional = true }
rapier3d = { version = "0.24.0", optional = true }
parry3d-f64 = { version = "0.19.0", optional = true }
parry3d = { version = "0.19.0", optional = true }
# bevy mesh conversion
bevy_mesh = { version = "0.16", optional = true }
bevy_asset = { version = "0.16", optional = true }
wgpu-types = { version = "24", 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 }
contour_tracing = { version = "1.0.12", features = ["array"], optional = true }
either = "1.15"
# doc
#doc-image-embed = "0.2" # fork of https://crates.io/crates/embed-doc-image - should be upstreamed.
# io/load
# core2 = { version = "0.4.0", default_features = false, features = ["alloc"] } # no-std, still throws errors
core2 = { version = "0.4", features = ["alloc"] }
dxf = { version = "0.6", optional = true }
stl_io = { version = "0.8", optional = true }
image = { version = "0.25", optional = true }
svg = { version = "0.18", optional = true }
nom = { version = "7.1", 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
[target.'cfg(any(target_arch = "wasm32", target_arch = "wasm64"))'.dependencies]
getrandom = { version = "0.3", features = ["wasm_js"], optional = true }
wasm-bindgen = { version = "0.2", optional = true }
[features]
default = ["f64", "stl-io", "dxf-io", "obj-io", "ply-io", "amf-io", "chull-io", "image-io", "metaballs", "sdf", "offset", "delaunay", "truetype-text", "hershey-text"]
parallel = [
"rayon",
"geo/multithreading",
"hashbrown/rayon",
"parry3d?/parallel",
"parry3d-f64?/parallel",
"rapier3d?/parallel",
"rapier3d-f64?/parallel"
]
f64 = [
"rapier3d-f64",
"parry3d-f64",
]
f32 = [
"rapier3d",
"parry3d",
]
# convex hull and minkowski sum
chull-io = [
"chull",
]
stl-io = [
"stl_io",
]
svg-io = [
"svg",
"nom", # Parsing of things not covered by the `svg` crate
]
dxf-io = [
"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
]
truetype-text = [
"ttf-parser",
"ttf-utils",
]
hershey-text = [
"hershey",
]
image-io = [
"image",
"contour_tracing",
"svg-io",
]
metaballs = [
"fast-surface-nets",
]
sdf = [
"fast-surface-nets",
]
offset = [
"dep:geo-buf",
]
delaunay = [
"geo/spade",
]
earcut = [
"geo/earcutr",
]
bevymesh = [
"dep:bevy_mesh",
"dep:bevy_asset",
"dep:wgpu-types"
]
[[example]]
name = "indexed_mesh_main"
path = "examples/indexed_mesh_main.rs"
[dev-dependencies]
approx = "0.5"
quickcheck = "1.0"