From cf8c02b120219e5131d8593ab73f2641ad433dc6 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 12 May 2018 10:49:19 -0700 Subject: [PATCH] Use custom metadata to specify playground features --- Cargo.toml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 73c034651..f1231a78e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 } @@ -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"]