Skip to content

Commit 87a802e

Browse files
xtask: Add support for log-debugcon feature
This ensures `cargo xtask build --feature-permutations` tests `log-debugcon` both enabled and disabled.
1 parent eeaba6f commit 87a802e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

xtask/src/cargo.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ pub enum Feature {
4949
// `uefi` features.
5050
Alloc,
5151
GlobalAllocator,
52+
LogDebugcon,
5253
Logger,
5354
Unstable,
5455
PanicHandler,
@@ -68,6 +69,7 @@ impl Feature {
6869
match self {
6970
Self::Alloc => "alloc",
7071
Self::GlobalAllocator => "global_allocator",
72+
Self::LogDebugcon => "log-debugcon",
7173
Self::Logger => "logger",
7274
Self::Unstable => "unstable",
7375
Self::PanicHandler => "panic_handler",
@@ -88,6 +90,7 @@ impl Feature {
8890
Package::Uefi => vec![
8991
Self::Alloc,
9092
Self::GlobalAllocator,
93+
Self::LogDebugcon,
9194
Self::Logger,
9295
Self::Unstable,
9396
Self::PanicHandler,
@@ -112,7 +115,7 @@ impl Feature {
112115
/// - `include_unstable` - add all functionality behind the `unstable` feature
113116
/// - `runtime_features` - add all functionality that effect the runtime of Rust
114117
pub fn more_code(include_unstable: bool, runtime_features: bool) -> Vec<Self> {
115-
let mut base_features = vec![Self::Alloc, Self::Logger];
118+
let mut base_features = vec![Self::Alloc, Self::Logger, Self::LogDebugcon];
116119
if include_unstable {
117120
base_features.extend([Self::Unstable])
118121
}
@@ -293,6 +296,8 @@ impl Cargo {
293296
cmd.arg(sub_action);
294297
}
295298

299+
cmd.arg("--no-default-features");
300+
296301
if self.release {
297302
cmd.arg("--release");
298303
}

0 commit comments

Comments
 (0)