Skip to content

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