Skip to content
This repository was archived by the owner on Nov 30, 2022. It is now read-only.

Commit 41807c0

Browse files
committed
Add feature documentation to manifest
In order to assist users of the library understanding which features should be enabled for what functionality add documentation to the optional dependencies.
1 parent f368608 commit 41807c0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@ serde-std = ["serde/std"]
2525
unstable = [] # for benchmarking
2626

2727
[dependencies]
28+
# Only enable this if you explicitly do not want to use "std", otherwise enable "serde-std".
2829
serde = { version = "1.0", default-features = false, optional = true }
30+
# Can only be used with "std" enabled.
2931
schemars = { version = "<=0.8.3", optional = true }
32+
# Only enable this if you explicitly do not want to use an allocator, otherwise enable "alloc".
3033
core2 = { version = "0.3.0", optional = true, default_features = false }
3134

3235
[dev-dependencies]

0 commit comments

Comments
 (0)