Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documented the libm feature #165

Merged
merged 1 commit into from
Dec 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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