Skip to content

Commit

Permalink
Use custom metadata to specify playground features
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed May 12, 2018
1 parent 1950606 commit cf8c02b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ A library to generate and parse UUIDs.
[package.metadata.docs.rs]
all-features = true

[package.metadata.playground]
features = ["serde", "v1", "v3", "v4", "v5"]

[dependencies]
serde = { version = "1.0.16", optional = true, default-features = false }
rand = { version = "0.4", optional = true }
Expand All @@ -40,8 +43,3 @@ v1 = []
v3 = ["md5", "rand"]
v4 = ["rand"]
v5 = ["sha1", "rand"]

# Get features picked up by the Integer 32 playground. Not public API.
#
# https://play.rust-lang.org
playground = ["serde", "v1", "v3", "v4", "v5"]

0 comments on commit cf8c02b

Please sign in to comment.