Skip to content

Commit

Permalink
re-export debug_glam_assert feature (#10206)
Browse files Browse the repository at this point in the history
# Objective

- I want to use the `debug_glam_assert` feature with bevy.

## Solution

- Re-export the feature flag

---

## Changelog

- Re-export `debug_glam_assert` feature flag from glam.
  • Loading branch information
ameknite committed Oct 22, 2023
1 parent f9ef989 commit 1e92589
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Expand Up @@ -232,6 +232,9 @@ accesskit_unix = ["bevy_internal/accesskit_unix"]
# Enable assertions to check the validity of parameters passed to glam
glam_assert = ["bevy_internal/glam_assert"]

# Enable assertions in debug builds to check the validity of parameters passed to glam
debug_glam_assert = ["bevy_internal/debug_glam_assert"]

# Include a default font, containing only ASCII characters, at the cost of a 20kB binary size increase
default_font = ["bevy_internal/default_font"]

Expand Down
4 changes: 4 additions & 0 deletions crates/bevy_internal/Cargo.toml
Expand Up @@ -97,9 +97,13 @@ accesskit_unix = ["bevy_winit/accesskit_unix"]
bevy_text = ["dep:bevy_text", "bevy_ui?/bevy_text"]

bevy_render = ["dep:bevy_render", "bevy_scene?/bevy_render"]

# Enable assertions to check the validity of parameters passed to glam
glam_assert = ["bevy_math/glam_assert"]

# Enable assertions in debug builds to check the validity of parameters passed to glam
debug_glam_assert = ["bevy_math/debug_glam_assert"]

default_font = ["bevy_text?/default_font"]

# Enables the built-in asset processor for processed assets.
Expand Down
2 changes: 2 additions & 0 deletions crates/bevy_math/Cargo.toml
Expand Up @@ -18,3 +18,5 @@ serialize = ["dep:serde", "glam/serde"]
mint = ["glam/mint"]
# Enable assertions to check the validity of parameters passed to glam
glam_assert = ["glam/glam-assert"]
# Enable assertions in debug builds to check the validity of parameters passed to glam
debug_glam_assert = ["glam/debug-glam-assert"]
1 change: 1 addition & 0 deletions docs/cargo_features.md
Expand Up @@ -50,6 +50,7 @@ The default feature set enables most of the expected features of a game engine,
|bevy_dynamic_plugin|Plugin for dynamic loading (using [libloading](https://crates.io/crates/libloading))|
|bmp|BMP image format support|
|dds|DDS compressed texture support|
|debug_glam_assert|Enable assertions in debug builds to check the validity of parameters passed to glam|
|detailed_trace|Enable detailed trace event logging. These trace events are expensive even when off, thus they require compile time opt-in|
|dynamic_linking|Force dynamic linking, which improves iterative compile times|
|embedded_watcher|Enables watching in memory asset providers for Bevy Asset hot-reloading|
Expand Down

0 comments on commit 1e92589

Please sign in to comment.