Skip to content
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

Fix some compiler errors in bevy_easings #11

Closed
wants to merge 2 commits into from
Closed

Fix some compiler errors in bevy_easings #11

wants to merge 2 commits into from

Conversation

undinococo
Copy link

Adding the plugin to cargo.toml would cause the project to not compile, now it does.

When compiling this directly it will give errors, but its the only way I could get it to work.
The compiler would complain about unstable features and float interpolation, so I fixed it.
@mockersf
Copy link
Member

Using #![feature(float_interpolation)] means it wouldn't work on stable anymore

@undinococo
Copy link
Author

I reinstalled my OS and now it works, so the problem was on my end. Sorry!

@undinococo undinococo closed this Aug 22, 2021
@Carlton-Perkins
Copy link
Contributor

It would appear that I have the same problem that this PR was trying to fix. I suspect the problem is with the nightly compiler and the fact that they are adding a built in lerp function on fNN's soon which prevents calling the function from the interpolation library you are using.

Rust fNN lerp feature request
A good fix for this might be to conditionally compile depending on if the std has already brought in a lerp function, otherwise bring in the one from interpolation

@mockersf LMK if there is anything I can do to help fix this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants