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.
@@ -37,12 +37,17 @@ bootloader_api = { version = "0.11.0", path = "api" }
bootloader-x86_64-common = { version = "0.11.0", path = "common" }
bootloader-x86_64-bios-common = { version = "0.11.0", path = "bios/common" }
+[features]
+default = ["bios", "uefi"]
+bios = ["mbrman"]
+uefi = ["gpt"]
+
[dependencies]
anyhow = "1.0.32"
fatfs = "0.3.4"
-gpt = "3.0.0"
-mbrman = "0.5.1"
tempfile = "3.3.0"
+mbrman = { version = "0.5.1", optional = true }
+gpt = { version = "3.0.0", optional = true }
[dev-dependencies]
bootloader_test_runner = { path = "tests/runner" }
