Debian Codegraph @

third_party/rust/ordered-float/README.md

raw
1 # Ordered Floats
2
3 Provides several wrapper types for Ord and Eq implementations on f64 and friends.
4
5 See the [API documentation](https://docs.rs/ordered-float) for further details.
6
7 ## no_std
8
9 To use `ordered_float` without requiring the Rust standard library, disable
10 the default `std` feature:
11
12 ```toml
13 [dependencies]
14 ordered-float = { version = "3.0", default-features = false }
15 ```
16
17 ## Optional features
18
19 The following optional features can be enabled in `Cargo.toml`:
20
21 * `bytemuck`: Adds implementations for traits provided by the `bytemuck` crate.
22 * `rand`: Adds implementations for various distribution types provided by the `rand` crate.
23 * `serde`: Implements the `serde::Serialize` and `serde::Deserialize` traits.
24 * `schemars`: Implements the `schemars::JsonSchema` trait.
25 * `proptest`: Implements the `proptest::Arbitrary` trait.
26 * `rkyv`: Implements `rkyv`'s `Archive`, `Serialize` and `Deserialize` traits.
27 * `speedy`: Implements `speedy`'s `Readable` and `Writable` traits.
28
29 ## License
30
31 MIT