Skip to content

Commit 6933865

Browse files
committed
Set the required-features key for the bootlodaer executable
This results in a much better error message when a build without that feature is attempted.
1 parent b6b4bbc commit 6933865

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Cargo.toml

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ repository = "https://github.com/rust-osdev/bootloader"
88
edition = "2018"
99
build = "build.rs"
1010

11+
[[bin]]
12+
name = "bootloader"
13+
required-features = ["binary"]
14+
1115
[dependencies]
1216
xmas-elf = { version = "0.6.2", optional = true }
1317
x86_64 = { version = "0.7.2", optional = true }

0 commit comments

Comments
 (0)