From a42f6103242a2987699861dcdd885ae252f2c5d1 Mon Sep 17 00:00:00 2001 From: harudagondi Date: Sat, 3 Sep 2022 03:02:04 +0000 Subject: [PATCH] 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. --- crates/bevy_math/Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/bevy_math/Cargo.toml b/crates/bevy_math/Cargo.toml index 689392fbe53ff..c519bf85e1690 100644 --- a/crates/bevy_math/Cargo.toml +++ b/crates/bevy_math/Cargo.toml @@ -11,3 +11,7 @@ keywords = ["bevy"] [dependencies] glam = { version = "0.21", features = ["serde", "bytemuck"] } serde = "1" + +[features] +# Enable interoperation of glam types with mint-compatible libraries +mint = ["glam/mint"]