Closed kettle11 closed 2 years ago
Right now if the std feature is enabled then glam gets enabled due to this line in the cargo.toml:
std
glam
cargo.toml
[features] std = ["glam/std"]
I'm not sure how best to fix this. If this feature were stable it could be used: https://doc.rust-lang.org/cargo/reference/unstable.html#weak-dependency-features (https://github.com/rust-lang/cargo/issues/8832)
Additionally for kolor to build with glam disabled this line needs to be changed to prepend super: https://github.com/BoxDragon/kolor/blob/a66d17cf7eee04c54443b3a2e1e1cc98a5151808/kolor/src/details/math.rs#L116
kolor
super
Like this:
impl super::Cuberoot for Vec3 {
Oh, tricky! Looks like the feature you link is being stabilized. Let's wait for that :)
Right now if the
std
feature is enabled thenglam
gets enabled due to this line in thecargo.toml
:I'm not sure how best to fix this. If this feature were stable it could be used: https://doc.rust-lang.org/cargo/reference/unstable.html#weak-dependency-features (https://github.com/rust-lang/cargo/issues/8832)
Additionally for
kolor
to build withglam
disabled this line needs to be changed to prependsuper
: https://github.com/BoxDragon/kolor/blob/a66d17cf7eee04c54443b3a2e1e1cc98a5151808/kolor/src/details/math.rs#L116Like this: