Skip to content

Commit

Permalink
use new bevy_math feature to enable glam (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
cscorley authored Aug 31, 2024
1 parent d7d17c5 commit 282ca06
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 24 deletions.
25 changes: 9 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 2 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ 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.1"
# Enable libm in glam dependency for https://github.com/cscorley/bevy_ggrs_rapier_example/issues/22
bevy_math = { version = "0.14.1", features = ["libm"] }
bevy-inspector-egui = "0.25.2"
bevy_framepace = "0.17.1"
bevy_ggrs = "0.16.0"
Expand All @@ -56,14 +58,6 @@ bevy_rapier2d = { git = "https://github.com/cscorley/bevy_rapier", branch = "mor
"serde-serialize",
] }

# Overriding glam for # https://github.com/cscorley/bevy_ggrs_rapier_example/issues/22
# We have this here so we can explicitly declare the libm feature to ensure it's
# enabled. We still want to have this direct dependency, even though we don't
# use glam ourselves, because we want to force on the libm feature.
# Unfortunately, we cannot enable the feature via bevy yet, which would be
# optimal.
glam = { version = "0.28.0", features = ["libm"] }

# Add our web-only dependencies
[target.'cfg(target_arch = "wasm32")'.dependencies]
console_error_panic_hook = "0.1"
Expand Down

0 comments on commit 282ca06

Please sign in to comment.