-
-
Notifications
You must be signed in to change notification settings - Fork 512
Disable default features for glam
#1510
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
Conversation
std = [ | ||
"matrixmultiply", | ||
"num-traits/std", | ||
"num-complex/std", | ||
"num-rational/std", | ||
"approx/std", | ||
"simba/std", | ||
"glam014?/std", | ||
"glam015?/std", | ||
"glam016?/std", | ||
"glam017?/std", | ||
"glam018?/std", | ||
"glam019?/std", | ||
"glam020?/std", | ||
"glam021?/std", | ||
"glam022?/std", | ||
"glam023?/std", | ||
"glam024?/std", | ||
"glam025?/std", | ||
"glam027?/std", | ||
"glam028?/std", | ||
"glam029?/std", | ||
"glam030?/std", | ||
] |
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 is a bit nasty :/ not sure if there's a better way?
Seems like a good idea to me, but this PR seems to contain unrelated changes, e.g. to the rustc version used for trybuild tests. |
Yeah that's to make CI pass. Won't be needed if we first merge #1505 or some other PR that bumps the version |
The intended approach is to use `serde-serialize-no-std` if serde is needed in `no_std` environments.
This reverts commit 98b3422.
16f13ff
to
409b9a2
Compare
This reverts commit 46012e8.
Thanks! |
Objective
Currently, the
convert-glamXYZ
features addglam
as a dependency with default features enabled. This unconditionally enables thestd
feature inglam
, making it impossible to usenalgebra
andglam
interoperatively with the type conversions inno_std
environments.Solution
Disable default features from the
glam
dependencies. To make CI pass,std
is still used if it's enabled fornalgebra
.Note that I also bumped the rustc version to 1.81.0 here since CI was failing because of it (unrelated to this PR).