-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Merged by Bors] - Expose mint feature in bevy_math/glam #5857
Conversation
This is different from #5270 as this is an opt-in feature. |
It would make more sense to me for |
I don't think that's right, since making users manually keep their glam version up to date seems not optimal. Why not just expose all of the glam features in I don't think we should filter this feature all the way up to the root - it should be |
I'm using
|
What DJMcNab is suggesting is exposing a I worry about the multiplication of features exposed by Bevy, this suggestion would fix it |
Sorry if this is wrong, as I am not really familiar with how rust features work. If my library (e.g. bevy_oddio) directly uses |
It is not wrong, it's just that features in Bevy requires some work/maintenance due to how the crates are organised. As you saw in that PR you need to modify three crates to expose a feature.
Yup, you would have as dependency: bevy = { version = "0.8", default-features = false, features = ["..."] }
bevy_math = { version = "0.8", features = ["mint"] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This strategy looks good to me now.
@harudagondi I'll merge this once a) merge conflicts are resolved and b) you add the new line :) |
Co-authored-by: François <mockersf@gmail.com>
bors r+ |
# 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.
Pull request successfully merged into main. Build succeeded: |
# 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.
# 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.
Objective
mint
feature ofglam
inbevy_math
.oddio::SpatialOptions
uses mint typesSolution
bevy_math
,bevy_internal
,bevy
Updateddocs/cargo_features.md
Changelog
Added
mint
feature inbevy_math
to allow interoperation of glam types with mint-compatible libraries.