Skip to content

Commit

Permalink
Expose mint feature in bevy_math/glam (bevyengine#5857)
Browse files Browse the repository at this point in the history
# 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.
  • Loading branch information
harudagondi authored and ItsDoot committed Feb 1, 2023
1 parent df93083 commit a42f610
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/bevy_math/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit a42f610

Please sign in to comment.