Skip to content

Commit c23c5e3

Browse files
uran0sHlauralt
authored andcommitted
Make --no-default-features work
If you want to use cmdline loader only, you can run build it with --no-default-features Signed-off-by: uran0sH <huangwenyuu@outlook.com>
1 parent 3d80c65 commit c23c5e3

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

.buildkite/custom-tests.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@
1313
"platform": [
1414
"x86_64"
1515
]
16+
},
17+
{
18+
"test_name": "build-no-default-features",
19+
"command": "cargo build --release --no-default-features",
20+
"platform": [
21+
"x86_64",
22+
"aarch64"
23+
]
1624
}
1725
]
1826
}

src/configurator/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
//! - [PvhBootConfigurator](pvh/struct.PvhBootConfigurator.html): PVH boot protocol parameters
1717
//! configurator.
1818
19+
#![cfg(any(feature = "elf", feature = "pe", feature = "bzimage"))]
20+
1921
use vm_memory::{Address, ByteValued, GuestAddress, GuestMemory};
2022

2123
use std::fmt;

src/configurator/x86_64/pvh.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
//! Traits and structs for configuring and loading boot parameters on `x86_64` using the PVH boot
1313
//! protocol.
1414
15+
#![cfg(any(feature = "elf", feature = "bzimage"))]
16+
1517
use vm_memory::{ByteValued, Bytes, GuestMemory};
1618

1719
use crate::configurator::{BootConfigurator, BootParams, Error as BootConfiguratorError, Result};

0 commit comments

Comments
 (0)