build: drop the need to import macros from Clap

Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
Wei Liu
2023-01-06 16:45:47 +00:00
committed by Bo Chen
parent 998fb48ff2
commit 0389190c64
7 changed files with 9 additions and 21 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ edition = "2021"
build = "build.rs"
[dependencies]
clap = { version = "4.0.29", features = ["wrap_help","cargo"] }
clap = { version = "4.0.29", features = ["wrap_help"] }
dirs = "4.0.0"
serde = { version = "1.0.151", features = ["rc", "derive"] }
serde_json = "1.0.89"
+1 -3
View File
@@ -5,8 +5,6 @@
// Custom harness to run performance tests
extern crate test_infra;
#[macro_use(crate_authors)]
extern crate clap;
mod performance_tests;
@@ -631,7 +629,7 @@ fn date() -> String {
fn main() {
let cmd_arguments = ClapCommand::new("performance-metrics")
.version(env!("GIT_HUMAN_READABLE"))
.author(crate_authors!())
.author(env!("CARGO_PKG_AUTHORS"))
.about("Generate the performance metrics data for Cloud Hypervisor")
.arg(
Arg::new("test-filter")