aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2018-10-28 22:31:08 +0100
committerHarald Eilertsen <haraldei@anduin.net>2018-10-28 22:31:08 +0100
commit3e627a2e38d296b919e0b4439f2a93b0fb1d5e21 (patch)
treeff3798c361ff7365e61cb34b872728513c15c822
parent75dcb1e9dc2c554e7193daeb1a84157fbcd8603d (diff)
downloadrust-zotapi-3e627a2e38d296b919e0b4439f2a93b0fb1d5e21.tar.gz
rust-zotapi-3e627a2e38d296b919e0b4439f2a93b0fb1d5e21.tar.bz2
rust-zotapi-3e627a2e38d296b919e0b4439f2a93b0fb1d5e21.zip
Import macros explicitly in zot cli example.
This requires rust 1.30.0 or later.
-rw-r--r--examples/zotcli.rs11
1 files changed, 9 insertions, 2 deletions
diff --git a/examples/zotcli.rs b/examples/zotcli.rs
index 2804754..6b3a97b 100644
--- a/examples/zotcli.rs
+++ b/examples/zotcli.rs
@@ -17,11 +17,18 @@
extern crate zotapi;
extern crate dotenv;
-#[macro_use]
extern crate clap;
extern crate serde_json;
-use clap::{Arg, SubCommand};
+use clap::{
+ Arg,
+ app_from_crate,
+ crate_name,
+ crate_version,
+ crate_authors,
+ crate_description,
+ SubCommand
+};
use dotenv::dotenv;
use std::env;