From 026864d1c215e1e683893a7f8fd39f03ba09a17e Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Nov 26 2019 19:03:32 +0000 Subject: Remove examples Signed-off-by: Igor Gnatenko --- diff --git a/nom-fix-metadata.diff b/nom-fix-metadata.diff index 21626ae..effcd69 100644 --- a/nom-fix-metadata.diff +++ b/nom-fix-metadata.diff @@ -1,6 +1,23 @@ --- nom-5.0.1/Cargo.toml 1970-01-01T00:00:00+00:00 -+++ nom-5.0.1/Cargo.toml 2019-11-26T10:30:43.462854+00:00 -@@ -102,35 +102,6 @@ ++++ nom-5.0.1/Cargo.toml 2019-11-26T19:03:02.515466+00:00 +@@ -34,16 +34,6 @@ + + [lib] + bench = false +- +-[[example]] +-name = "json" +-path = "examples/json.rs" +-required-features = ["alloc"] +- +-[[example]] +-name = "s_expression" +-path = "examples/s_expression.rs" +-required-features = ["alloc"] + + [[test]] + name = "arithmetic" +@@ -102,35 +92,6 @@ [[test]] name = "test1" @@ -36,7 +53,7 @@ [dependencies.lazy_static] version = "^1.0" optional = true -@@ -146,16 +117,11 @@ +@@ -146,16 +107,11 @@ [dependencies.regex] version = "^1.0" optional = true diff --git a/rust-nom.spec b/rust-nom.spec index 971540c..dccadcc 100644 --- a/rust-nom.spec +++ b/rust-nom.spec @@ -14,7 +14,7 @@ License: MIT URL: https://crates.io/crates/nom Source: %{crates_source} # Initial patched metadata -# * the benches are not included in the package +# * the benches/examples are not included in the package # * Update version_check to 0.9, https://github.com/Geal/nom/pull/1073 Patch0: nom-fix-metadata.diff # * Finish version_check update