Skip to content

Commit

Permalink
add feature flag to xtask commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Goncharov authored and Ivan Goncharov committed Nov 14, 2024
1 parent f286960 commit 1d0bf1f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
9 changes: 8 additions & 1 deletion xtask/src/commands/dist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
5 changes: 4 additions & 1 deletion xtask/src/commands/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1d0bf1f

Please sign in to comment.