From ab5a95518d544e03c23a5fed48c4d856f0c06238 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Magnenat?= Date: Thu, 19 Dec 2024 21:18:35 +0100 Subject: [PATCH] Documented the libm feature --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 3fb07a3..e6d46e0 100644 --- a/README.md +++ b/README.md @@ -15,10 +15,13 @@ the default `std` feature: ordered-float = { version = "4.0", default-features = false } ``` +If you still want to have access to the `Pow` and `Float` traits, enable the `libm` feature. + ## Optional features The following optional features can be enabled in `Cargo.toml`: +* `libm`: When not using the `std` feature, enable the `libm` feature of `num-traits` to still access the `Pow` and `Float` traits. * `arbitrary`: Implements the `arbitrary::Arbitrary` trait. * `borsh`: Adds implementations for traits provided by the `borsh` crate. * `bytemuck`: Adds implementations for traits provided by the `bytemuck` crate.