Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
198 lines (176 loc) · 6.83 KB
/
Copy pathCargo.toml
File metadata and controls
198 lines (176 loc) · 6.83 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
[workspace]
members = [
"bindings/c/testbed/tools/logo-mesh",
"bindings/c/rapier-c-macros",
"bindings/c/rapier2d-ffi",
"bindings/c/rapier3d-ffi",
"bindings/c/rapier2d-f64-ffi",
"bindings/c/rapier3d-f64-ffi",
"crates/rapier2d",
"crates/rapier2d-f64",
"crates/rapier_testbed2d",
"crates/rapier_testbed2d-f64",
"examples2d",
"crates/rapier3d",
"crates/rapier3d-f64",
"crates/rapier_testbed3d",
"crates/rapier_testbed3d-f64",
"examples3d",
"examples3d-f64",
"crates/rapier3d-urdf",
"crates/rapier3d-meshloader",
"crates/mjcf-rs",
"crates/rapier3d-mjcf",
"bindings/python/rapier-py-3d",
]
# Bare `cargo build` / `cargo test` / `cargo clippy` only touches the
# pure-Rust crates. The Python-binding crates need a Python build env
# (pyo3 `extension-module`) and are exercised by the dedicated
# `.github/workflows/python-bindings.yml` workflow via explicit
# `-p rapier-py-*` invocations. C ABI crates are tested separately by
# `.github/workflows/c-bindings.yml`, including native C/C++ consumers.
default-members = [
"crates/rapier2d",
"crates/rapier2d-f64",
"crates/rapier_testbed2d",
"crates/rapier_testbed2d-f64",
"examples2d",
"crates/rapier3d",
"crates/rapier3d-f64",
"crates/rapier_testbed3d",
"crates/rapier_testbed3d-f64",
"examples3d",
"examples3d-f64",
"crates/rapier3d-urdf",
"crates/rapier3d-meshloader",
"crates/mjcf-rs",
"crates/rapier3d-mjcf",
]
# `bindings/typescript/` and `bindings/bevy_rapier/` have their own Cargo workspaces; keep them out of
# this one so root-level `cargo` commands never try to absorb their crates.
exclude = ["bindings/typescript", "bindings/bevy_rapier"]
resolver = "2"
[workspace.package]
version = "0.36.1"
authors = ["Sébastien Crozet <sebcrozet@dimforge.com>"]
homepage = "https://rapier.rs"
repository = "https://github.com/dimforge/rapier"
categories = [
"science",
"game-development",
"mathematics",
"simulation",
"wasm",
]
license = "Apache-2.0"
rust-version = "1.86"
edition = "2024"
[workspace.lints.clippy]
needless_lifetimes = "allow"
[workspace.dependencies]
# Core math
nalgebra = { version = "0.35", default-features = false, features = ["macros"] }
glamx = { version = "0.3.1", default-features = false }
simba = { version = "0.10.2", default-features = false }
num-traits = { version = "0.2", default-features = false }
approx = { version = "0.5", default-features = false }
# Parry (each crate picks its own variant)
parry2d = { version = "0.31.1", default-features = false, features = ["required-features"] }
parry3d = { version = "0.31.1", default-features = false, features = ["required-features"] }
parry2d-f64 = { version = "0.31.1", default-features = false, features = ["required-features"] }
parry3d-f64 = { version = "0.31.1", default-features = false, features = ["required-features"] }
# Utilities
arrayvec = { version = "0.7", default-features = false }
bitflags = "2"
bytemuck = { version = "1", features = ["derive"] }
log = "0.4"
thiserror = { version = "2", default-features = false }
profiling = "1.0"
static_assertions = "1"
wide = { version = "1", default-features = false }
# Optional (optional = true must be set per-crate, not here)
web-time = "1.1"
rayon = "1"
serde = { version = "1", default-features = false, features = ["derive"] }
# Testbed / rendering / tooling
rand = "0.10"
rand_pcg = "0.10"
num_cpus = "1"
libc = "0.2"
Inflector = "0.11"
md5 = "0.8"
egui = "0.34"
puffin_egui = "0.30"
indexmap = { version = "2", features = ["serde"] }
kiss3d = { version = "0.45.0", features = ["egui", "serde"] }
env_logger = "0.11"
anyhow = "1"
# Loaders / assets
urdf-rs = "0.9"
mesh-loader = "0.1.13"
roxmltree = "0.20"
# Example-only
lyon = "0.17"
dot_vox = "5"
usvg = "0.14"
obj-rs = { version = "0.7", default-features = false }
# NOTE: no `fast-math` — cargo feature unification would switch it on for every
# build whose graph includes the examples, and it re-enables FMA contraction in
# glam's sse2 backend (a cross-platform determinism hazard).
glam = { version = "0.33" }
getrandom = { version = "0.2", features = ["js"] }
wasm-bindgen = "0.2"
# Internal crates (paths are relative to the workspace root)
rapier2d = { version = "0.36.1", path = "crates/rapier2d" }
rapier2d-f64 = { version = "0.36.1", path = "crates/rapier2d-f64" }
rapier3d = { version = "0.36.1", path = "crates/rapier3d" }
rapier3d-f64 = { version = "0.36.1", path = "crates/rapier3d-f64" }
rapier_testbed2d = { version = "0.36.1", path = "crates/rapier_testbed2d" }
rapier_testbed2d-f64 = { version = "0.36.1", path = "crates/rapier_testbed2d-f64" }
rapier_testbed3d = { version = "0.36.1", path = "crates/rapier_testbed3d" }
rapier_testbed3d-f64 = { version = "0.36.1", path = "crates/rapier_testbed3d-f64" }
rapier3d-urdf = { version = "0.36.1", path = "crates/rapier3d-urdf" }
rapier3d-meshloader = { version = "0.36.1", path = "crates/rapier3d-meshloader", default-features = false }
mjcf-rs = { version = "0.36.1", path = "crates/mjcf-rs" }
rapier3d-mjcf = { version = "0.36.1", path = "crates/rapier3d-mjcf" }
# Dev
bincode = "1"
serde_json = "1"
oorandom = { version = "11", default-features = false }
tempfile = "3"
[patch.crates-io]
#xurdf = { path = "../xurdf/xurdf" }
#simba = { path = "../simba" }
#kiss3d = { path = "../kiss3d" }
#parry2d = { path = "../parry/crates/parry2d" }
#parry3d = { path = "../parry/crates/parry3d" }
#parry2d-f64 = { path = "../parry/crates/parry2d-f64" }
#parry3d-f64 = { path = "../parry/crates/parry3d-f64" }
#nalgebra = { path = "../nalgebra" }
#simba = { path = "../simba" }
#wide = { path = "../wide" }
#glamx = { path = "../glamx" }
#kiss3d = { git = "https://github.com/sebcrozet/kiss3d", branch = "render-2d" }
#nalgebra = { git = "https://github.com/dimforge/nalgebra", branch = "dev" }
#glamx = { git = "https://github.com/dimforge/glamx", branch = "fix-lerp2" }
#parry2d = { git = "https://github.com/dimforge/parry", branch = "soft-bodies" }
#parry3d = { git = "https://github.com/dimforge/parry", branch = "soft-bodies" }
#parry2d-f64 = { git = "https://github.com/dimforge/parry", branch = "soft-bodies" }
#parry3d-f64 = { git = "https://github.com/dimforge/parry", branch = "soft-bodies" }
# See https://github.com/EmbarkStudios/puffin/pull/234
puffin_egui = { git = "https://github.com/tedsteen/puffin.git", rev = "11771ebe00fd257aedbb545df3339ad597b1cc34" }
# # For feature unstable-puffin-pr-235
# # See https://github.com/dimforge/rapier/issues/760.
# puffin_egui = { version = "0.29", optional = true, git = "https://github.com/Vrixyz/puffin.git", branch = "expose_ui_options" }
# puffin = { version = "0.19", optional = true, git = "https://github.com/Vrixyz/puffin.git", branch = "expose_ui_options" }
[profile.release]
#debug = true
#codegen-units = 1
#lto = true
[profile.dev]
opt-level = 1
#[profile.dev.package.rapier3d]
#opt-level = 3
#
#[profile.dev.package.kiss3d]
#opt-level = 3