-
Notifications
You must be signed in to change notification settings - Fork 4
/
Cargo.toml
67 lines (57 loc) · 2.12 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
[package]
name = "bevy_ggrs_rapier_example"
version = "0.1.0"
edition = "2021"
license = "MIT"
# Enable a small amount of optimization in debug mode
[profile.dev]
opt-level = 1
# Enable high optimizations for dependencies (incl. Bevy), but not for our code
[profile.dev.package."*"]
opt-level = 3
[profile.wasm-release]
# Use release profile as default values
inherits = "release"
# Optimize with size in mind, also try "s", sometimes it is better.
# This doesn't increase compilation times compared to -O3, great improvements
opt-level = "z"
# Do a second optimization pass removing duplicate or unused code from dependencies.
# Slows compile times, marginal improvements
lto = "fat"
# When building crates, optimize larger chunks at a time
# Slows compile times, marginal improvements
codegen-units = 1
[features]
default = []
web = ["bevy_ggrs/wasm-bindgen", "ggrs/wasm-bindgen"]
[dependencies]
# Prefer listing the exact bevy and bevy-adjacent versions here for clarity of what worked
bevy = "0.14.2"
# Enable libm in glam dependency for https://github.com/cscorley/bevy_ggrs_rapier_example/issues/22
bevy_math = { version = "0.14.2", features = ["libm"] }
bevy-inspector-egui = "0.25.2"
bevy_framepace = "0.17.1"
bevy_ggrs = "0.16.0"
bevy_matchbox = { version = "0.10.0", features = ["ggrs"] }
bincode = "1.3.3"
bytemuck = { version = "1.18.0", features = ["derive"] }
ggrs = { version = "0.10.2", features = ["sync-send"] }
log = "0.4.22"
rand = "0.8.5"
serde = { version = "1.0.210", features = ["serde_derive"] }
tracing-subscriber = { version = "0.3.18", features = [
"registry",
"env-filter",
] }
tracing-log = "0.2.0"
# This branch must be used until dimforge/bevy_rapier PRs #233 is merged
# bevy_rapier2d = { version = "0.22.0", features = [
# bevy_rapier2d = { path = "../bevy_rapier/bevy_rapier2d", features = [
bevy_rapier2d = { git = "https://github.com/cscorley/bevy_rapier", branch = "more-deterministic-context-0.14", features = [
"enhanced-determinism",
"serde-serialize",
] }
# Add our web-only dependencies
[target.'cfg(target_arch = "wasm32")'.dependencies]
console_error_panic_hook = "0.1.7"
tracing-wasm = "0.2.1"