Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-export glam_assert feature #8232

Merged
merged 4 commits into from
Mar 28, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@ tonemapping_luts = ["bevy_internal/tonemapping_luts"]
# Enable AccessKit on Unix backends (currently only works with experimental screen readers and forks.)
accesskit_unix = ["bevy_internal/accesskit_unix"]

# Enable assertions to check the validity of parameters passed to glam.
ameknite marked this conversation as resolved.
Show resolved Hide resolved
glam_assert = ["bevy_internal/glam_assert"]

[dependencies]
bevy_dylib = { path = "crates/bevy_dylib", version = "0.11.0-dev", default-features = false, optional = true }
bevy_internal = { path = "crates/bevy_internal", version = "0.11.0-dev", default-features = false }
Expand Down
3 changes: 3 additions & 0 deletions crates/bevy_internal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ accesskit_unix = ["bevy_winit/accesskit_unix"]

bevy_text = ["dep:bevy_text", "bevy_ui?/bevy_text"]

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

[dependencies]
# bevy
bevy_a11y = { path = "../bevy_a11y", version = "0.11.0-dev" }
Expand Down
4 changes: 3 additions & 1 deletion crates/bevy_math/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ glam = { version = "0.23", features = ["bytemuck"] }
serde = { version = "1", features = ["derive"], optional = true }

[features]
serialize = ["dep:serde", "glam/serde"]
# Enable interoperation of glam types with mint-compatible libraries
mint = ["glam/mint"]
serialize = ["dep:serde", "glam/serde"]
# Enable assertions to check the validity of parameters passed to glam.
glam_assert = ["glam/glam-assert"]
1 change: 1 addition & 0 deletions docs/cargo_features.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ The default feature set enables most of the expected features of a game engine,
|dynamic_linking|Force dynamic linking, which improves iterative compile times|
|exr|EXR image format support|
|flac|FLAC audio format support|
|glam_assert| Enable assertions to check the validity of parameters passed to glam|
ameknite marked this conversation as resolved.
Show resolved Hide resolved
|jpeg|JPEG image format support|
|minimp3|MP3 audio format support (through minimp3)|
|mp3|MP3 audio format support|
Expand Down