From 1d0bf1f8d745d35692399508d49cbc0a8e3bd044 Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Thu, 14 Nov 2024 15:07:19 +0100 Subject: [PATCH] add feature flag to xtask commands --- xtask/src/commands/dist.rs | 9 ++++++++- xtask/src/commands/test.rs | 5 ++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/xtask/src/commands/dist.rs b/xtask/src/commands/dist.rs index 544b8e9cb7..bf19422a91 100644 --- a/xtask/src/commands/dist.rs +++ b/xtask/src/commands/dist.rs @@ -11,7 +11,14 @@ impl Dist { pub fn run(&self) -> Result<()> { match &self.target { Some(target) => { - cargo!(["build", "--release", "--target", target]); + cargo!([ + "build", + "--features", + "experimental_hyper_header_limits", + "--release", + "--target", + target + ]); let bin_path = TARGET_DIR .join(target.to_string()) diff --git a/xtask/src/commands/test.rs b/xtask/src/commands/test.rs index dab1db991a..c5cd3c983b 100644 --- a/xtask/src/commands/test.rs +++ b/xtask/src/commands/test.rs @@ -53,7 +53,10 @@ impl Test { if let Some(features) = &self.features { args.push("--features".to_string()); - args.push(features.to_owned()); + args.push(format!("{} experimental_hyper_header_limits", features)); + } else { + args.push("--features".to_string()); + args.push("experimental_hyper_header_limits".to_string()); } cargo!(args);