Skip to content

Commit 0c98a2f

Browse files
committed
Expose mint feature in bevy_math/glam (#5857)
# Objective - Expose `mint` feature of `glam` in `bevy_math`. - Unblocks harudagondi/bevy_oddio#22 - [`oddio::SpatialOptions`] uses mint types [`oddio::SpatialOptions`]: https://docs.rs/oddio/latest/oddio/struct.SpatialOptions.html ## Solution - Added features in `bevy_math`, ~`bevy_internal`, `bevy`~ - ~Updated `docs/cargo_features.md`~ --- ## Changelog ### Added - `mint` feature in `bevy_math` to allow interoperation of glam types with mint-compatible libraries.
1 parent dfeb63e commit 0c98a2f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/bevy_math/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@ keywords = ["bevy"]
1111
[dependencies]
1212
glam = { version = "0.21", features = ["serde", "bytemuck"] }
1313
serde = "1"
14+
15+
[features]
16+
# Enable interoperation of glam types with mint-compatible libraries
17+
mint = ["glam/mint"]

0 commit comments

Comments
 (0)