-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathCargo.toml
75 lines (65 loc) · 3.85 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
[package]
name = "godot-rapier"
version = "0.8.10"
edition = "2021"
license = "MIT"
rust-version = "1.82"
publish = false
[lib]
crate-type = ["cdylib", "staticlib"]
[features]
default = ["build2d", "test"]
test = []
build2d = ["single-dim2", "serde-serialize", "simd-stable"]
build3d = ["single-dim3", "serde-serialize", "simd-stable"]
build2d-f64 = ["double-dim2", "serde-serialize", "simd-stable"]
build3d-f64 = ["double-dim3", "serde-serialize", "simd-stable"]
dim2 = []
dim3 = []
single = ["godot/api-4-3"]
double = ["godot/double-precision", "godot/api-custom"]
enhanced-determinism = ["rapier2d/enhanced-determinism", "rapier2d-f64/enhanced-determinism", "rapier3d/enhanced-determinism", "rapier3d-f64/enhanced-determinism"]
serde-serialize = ["serde", "hashbrown/serde", "bincode", "serde_json", "godot/serde", "rapier2d/serde-serialize", "rapier2d-f64/serde-serialize", "rapier3d/serde-serialize", "rapier3d-f64/serde-serialize" ]
simd-stable = ["rapier2d/simd-stable", "rapier2d-f64/simd-stable", "rapier3d/simd-stable", "rapier3d-f64/simd-stable"]
simd-nightly = ["rapier2d/simd-nightly", "rapier2d-f64/simd-nightly", "rapier3d/simd-nightly", "rapier3d-f64/simd-nightly"]
parallel = ["rapier2d/parallel", "rapier2d-f64/parallel", "rapier3d/parallel", "rapier3d-f64/parallel"] #, "experimental-threads"]
experimental-wasm-nothreads = ["godot/experimental-wasm-nothreads", "godot/lazy-function-tables"]
experimental-wasm = ["godot/experimental-wasm", "godot/lazy-function-tables"]
experimental-threads = ["godot/experimental-threads"]
single-dim2 = ["single", "dim2", "rapier2d", "salva2d"]
double-dim2 = ["double", "dim2", "rapier2d-f64", "salva2d-f64"]
single-dim3 = ["single", "dim3", "rapier3d", "salva3d"]
double-dim3 = ["double", "dim3", "rapier3d-f64", "salva3d-f64"]
[dependencies]
bincode = { version = "1", optional = true }
hashbrown = { version = "0.14" }
#godot = { git = "https://github.com/Ughuuu/gdext", branch = "remove-hook", features=["api-4-3", "register-docs", "experimental-threads"] }
godot = { version = "0.2.2", features=["register-docs"] }
rapier2d = { git = "https://github.com/ughuuu/rapier", branch = "custom-changes", optional = true }
rapier2d-f64 = { git = "https://github.com/ughuuu/rapier", branch = "custom-changes", optional = true}
rapier3d = { git = "https://github.com/ughuuu/rapier", branch = "custom-changes", optional = true}
rapier3d-f64 = { git = "https://github.com/ughuuu/rapier", branch = "custom-changes", optional = true}
salva2d = { git = "https://github.com/ughuuu/salva", branch = "custom-changes", features = ["rapier"], optional = true }
salva2d-f64 = { git = "https://github.com/ughuuu/salva", branch = "custom-changes", features = ["rapier"], optional = true }
salva3d = { git = "https://github.com/ughuuu/salva", branch = "custom-changes", features = ["rapier"], optional = true }
salva3d-f64 = { git = "https://github.com/ughuuu/salva", branch = "custom-changes", features = ["rapier"], optional = true }
serde = { version = "1.0", features = ["derive"], optional = true }
serde_json = { version = "1.0", optional = true }
[patch.crates-io]
rapier2d = {git = "https://github.com/ughuuu/rapier", branch = "custom-changes"}
rapier2d-f64 = {git = "https://github.com/ughuuu/rapier", branch = "custom-changes"}
parry2d = {git = "https://github.com/ughuuu/parry", branch = "custom-changes"}
parry2d-f64 = {git = "https://github.com/ughuuu/parry", branch = "custom-changes"}
rapier3d = {git = "https://github.com/ughuuu/rapier", branch = "custom-changes"}
rapier3d-f64 = {git = "https://github.com/ughuuu/rapier", branch = "custom-changes"}
parry3d = {git = "https://github.com/ughuuu/parry", branch = "custom-changes"}
parry3d-f64 = {git = "https://github.com/ughuuu/parry", branch = "custom-changes"}
[profile.release]
opt-level = 3
strip = "debuginfo"
lto = "fat"
codegen-units = 1
[profile.dev]
opt-level = 1
[package.metadata.docs.rs]
license-file = "../LICENSE"