From b7d2a99d09bdb4e96899cc9a012296b7a66ecf2b Mon Sep 17 00:00:00 2001 From: Vinzent Steinberg Date: Wed, 7 Jun 2017 12:22:26 +0200 Subject: [PATCH] Add word of caution about `Float` and `no_std` --- traits/src/float.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/traits/src/float.rs b/traits/src/float.rs index 075ca1e..5ca6e07 100644 --- a/traits/src/float.rs +++ b/traits/src/float.rs @@ -10,7 +10,11 @@ use {ToPrimitive, Num, NumCast}; // FIXME: these doctests aren't actually helpful, because they're using and // testing the inherent methods directly, not going through `Float`. -/// Floating point operations that work with `std`. +/// Floating point operations. +/// +/// Please note that some methods are disabled for `no_std`. If you implement it +/// only for `no_std`, the build will fail if anyone else in the dependency +/// graph enables `num-traits/std`. pub trait Float : Num + Copy