]> git.proxmox.com Git - cargo.git/commitdiff
Add `--cfg` to bench and test subcommands
authorChris Field <chris@fieldrndservices.com>
Wed, 16 Dec 2020 01:07:20 +0000 (20:07 -0500)
committerChris Field <chris@fieldrndservices.com>
Wed, 16 Dec 2020 01:07:20 +0000 (20:07 -0500)
src/bin/cargo/commands/bench.rs
src/bin/cargo/commands/test.rs

index 700dca258bfef94e7e61e7ad400d4816a91f6bf6..28f404b01965bfc066b1a377f62ca13bce9a5501 100644 (file)
@@ -45,6 +45,7 @@ pub fn cli() -> App {
             "Run all benchmarks regardless of failure",
         ))
         .arg_unit_graph()
+        .arg_rustc_cfg()
         .after_help("Run `cargo help bench` for more detailed information.\n")
 }
 
index 3d4dd5b2f023fbd6e963771b9d8cff124cff9060..bb39569eba2cba5e9df342c8ab256d5c70a92956 100644 (file)
@@ -55,6 +55,7 @@ pub fn cli() -> App {
         .arg_manifest_path()
         .arg_message_format()
         .arg_unit_graph()
+        .arg_rustc_cfg()
         .after_help("Run `cargo help test` for more detailed information.\n")
 }