Skip to content

Commit 2e4160e

Browse files
committed
Add bios and uefi features
Both features are enabled by default. mbrman and gpt are now optional, and are pulled in by the bios and uefi features respectively.
1 parent 66c1218 commit 2e4160e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Cargo.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,17 @@ bootloader_api = { version = "0.11.0", path = "api" }
3737
bootloader-x86_64-common = { version = "0.11.0", path = "common" }
3838
bootloader-x86_64-bios-common = { version = "0.11.0", path = "bios/common" }
3939

40+
[features]
41+
default = ["bios", "uefi"]
42+
bios = ["mbrman"]
43+
uefi = ["gpt"]
44+
4045
[dependencies]
4146
anyhow = "1.0.32"
4247
fatfs = "0.3.4"
43-
gpt = "3.0.0"
44-
mbrman = "0.5.1"
4548
tempfile = "3.3.0"
49+
mbrman = { version = "0.5.1", optional = true }
50+
gpt = { version = "3.0.0", optional = true }
4651

4752
[dev-dependencies]
4853
bootloader_test_runner = { path = "tests/runner" }

0 commit comments

Comments
 (0)