Skip to content

Commit fd04198

Browse files
committed
put constant and method behind feature gate
1 parent 87c6912 commit fd04198

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/config.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#[cfg(feature = "binary")]
12
const PAGE_SIZE: u64 = 4096;
23

34
/// Allows configuring the bootloader behavior.
@@ -91,6 +92,7 @@ pub struct Config {
9192
pub minimum_framebuffer_width: Option<usize>,
9293
}
9394

95+
#[cfg(feature = "binary")]
9496
impl Config {
9597
pub(crate) fn kernel_stack_size(&self) -> u64 {
9698
self.kernel_stack_size.unwrap_or(20 * PAGE_SIZE)

0 commit comments

Comments
 (0)