Skip to content

Commit 913fa46

Browse files
committed
Force --no-default-features when executing tests
1 parent 9708458 commit 913fa46

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

xtask/src/commands/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
pub(crate) mod bindgen;
2+
pub(crate) mod test;

xtask/src/commands/test.rs

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
use tracel_xtask::prelude::*;
2+
3+
pub(crate) fn handle_command(mut args: TestCmdArgs) -> anyhow::Result<()> {
4+
args.no_default_features = true;
5+
base_commands::test::handle_command(args)
6+
}

xtask/src/main.rs

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ fn main() -> anyhow::Result<()> {
1717
let args = init_xtask::<Command>()?;
1818
match args.command {
1919
Command::Bindgen(cmd_args) => commands::bindgen::handle_command(cmd_args),
20+
Command::Test(cmd_args) => commands::test::handle_command(cmd_args),
2021
_ => dispatch_base_commands(args),
2122
}?;
2223
let duration = start.elapsed();

0 commit comments

Comments
 (0)