Skip to content

Commit abafb81

Browse files
committed
Add documentation for optional Cargo features
1 parent f887d33 commit abafb81

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@ the default `std` feature:
2424
ordered-float = { version = "2.0", default-features = false }
2525
```
2626

27+
## Optional features
28+
29+
The following optional features can be enabled in `Cargo.toml`:
30+
31+
* `rand`: Adds implementations for various distribution types provided by the `rand` crate.
32+
* `serde`: Implements the `serde::Serialize` and `serde::Deserialize` traits.
33+
* `schemars`: Implents the `schemars::JsonSchema` trait.
34+
2735
## License
2836

2937
MIT

0 commit comments

Comments
 (0)