num-traits/src
bors[bot] 2f0cffd522
Merge #99
99: Revive Float+Real in no_std thanks to libm r=cuviper a=yoanlcq

Greetings,

This is a hopeful fix for #75.  
Basically: Add `libm` as an optional dependency, and handle three possible cases depending on which features are enabled:
- std and libm: std is used;
- std and not libm: std is used;
- libm and not std: libm and FloatCore are used.

It was briefly mentioned that `libm` wasn't ready yet, but this was months ago, and I believe it is better not to wait for too long.  
If anything, bugs in `libm` should be fixed in `libm`; `num-traits` is only delegating its implementations to it; not to mention that the more `libm` is used, the likelier issues are to be found and hopefully fixed.

Thanks in advance!

Co-authored-by: Yoan Lecoq <yoanlecoq.io@gmail.com>
Co-authored-by: Josh Stone <cuviper@gmail.com>
2019-09-30 16:39:17 +00:00
..
ops Merge #99 2019-09-30 16:39:17 +00:00
bounds.rs Fix unstable_name_collisions in Bounded for Wrapping 2019-09-27 11:07:25 -07:00
cast.rs Missing backticks. 2019-07-09 17:50:50 +07:00
float.rs Don't use libm at all with std 2019-09-27 10:53:17 -07:00
identities.rs Remove a stale doc comment on `set_zero()` 2019-03-28 12:30:22 -07:00
int.rs int: document PrimInt trait 2019-03-15 11:16:59 +01:00
lib.rs Don't use libm at all with std 2019-09-27 10:53:17 -07:00
macros.rs allow unused macros 2018-02-27 17:09:43 -08:00
pow.rs Run cargo fmt --all 2019-09-27 10:53:17 -07:00
real.rs Use a single global guard in mod real 2019-09-27 10:53:17 -07:00
sign.rs cargo fmt 2019-04-16 14:30:46 -07:00