Skip to content

Numeric traits moved to rust-lang/num #224

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
merged 1 commit into from
Apr 3, 2015
Merged

Numeric traits moved to rust-lang/num #224

merged 1 commit into from
Apr 3, 2015

Conversation

jshs
Copy link
Contributor

@jshs jshs commented Apr 3, 2015

This adds a dependency to rust-lang/num and uses all traits from there. This is motivated by the fact that std::num::Float has been deprecated (rust #23549). While {To,From}Primitive and NumCast remain as unstable traits, their addition to num suggests that they won't be stabilized soon. Therefore I switched these over as well.

Related Piston discussion.

Depending on num introduces the following transitive dependencies:

  • libc
  • log
  • rand
  • rustc-serialize

@bvssvni
Copy link
Member

bvssvni commented Apr 3, 2015

Thanks!

bvssvni added a commit that referenced this pull request Apr 3, 2015
Numeric traits moved to rust-lang/num
@bvssvni bvssvni merged commit 56713ad into PistonDevelopers:master Apr 3, 2015
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.

2 participants