-
-
Notifications
You must be signed in to change notification settings - Fork 158
Add f64
feature
#20
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
Add f64
feature
#20
Conversation
I tried having only a See: rust-lang/cargo#1839 |
Yeah, if we opt for this feature route, using I'm still not sure which one is better, but I think we can start with this feature method since it's simpler. We can add separate crates later if it ends up being a better approach. |
Would it make sense to create a |
Sounds like a good idea. I don't have time to pick this up again until Thursday at the earliest. So feel free to take over if you'd like to. |
- Added parry f64 variants for simd and enhanced_determinism features - Added f32 as 2D default feature - Added dep: prefixes to dependencies enabled by features - Added "?" for features of optional dependencies
`f32` types are in `math/single.rs`. `f64` types are in `math/double.rs`. `math/mod.rs` reimports the correct types depending on the features.
Edit: Nevermind, CI failed |
I like how the math module turned out. Definitely a lot less clutter now 👍 |
Previously they were generic over the float type, but it was a bit more complex and didn't reflect actual usage.
Okay, now everything should be working. |
Alternative to #7, but uses features instead of crates.