Skip to content

Commit ab5a955

Browse files
Documented the libm feature
1 parent 14c9153 commit ab5a955

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@ the default `std` feature:
1515
ordered-float = { version = "4.0", default-features = false }
1616
```
1717

18+
If you still want to have access to the `Pow` and `Float` traits, enable the `libm` feature.
19+
1820
## Optional features
1921

2022
The following optional features can be enabled in `Cargo.toml`:
2123

24+
* `libm`: When not using the `std` feature, enable the `libm` feature of `num-traits` to still access the `Pow` and `Float` traits.
2225
* `arbitrary`: Implements the `arbitrary::Arbitrary` trait.
2326
* `borsh`: Adds implementations for traits provided by the `borsh` crate.
2427
* `bytemuck`: Adds implementations for traits provided by the `bytemuck` crate.

0 commit comments

Comments
 (0)