Skip to content

Commit

Permalink
Merge pull request #165 from stephanemagnenat/patch-1
Browse files Browse the repository at this point in the history
Documented the libm feature
  • Loading branch information
mbrubeck authored Dec 19, 2024
2 parents 14c9153 + ab5a955 commit 258acd0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 258acd0

Please sign in to comment.