Provide better error message when running example without features

Even better would be if "cargo run --example server" would
automatically enable those features, but Cargo can't do that right now.
This commit is contained in:
Magnus Hallin 2017-05-18 10:31:53 +02:00
parent 032b03add3
commit 95b4124f6b
2 changed files with 5 additions and 1 deletions

View file

@ -15,6 +15,10 @@ name = "bench"
harness = false
path = "benches/bench.rs"
[[example]]
name = "server"
required-features = ["iron-handlers", "expose-test-schema"]
[features]
default = ["rustc-serialize"]
nightly = []

View file

@ -2,7 +2,7 @@ extern crate iron;
extern crate mount;
extern crate logger;
extern crate rustc_serialize;
#[macro_use] extern crate juniper;
extern crate juniper;
use std::env;