make arch an optional backend

This commit is contained in:
steven-omaha
2023-02-27 16:12:46 +01:00
parent 1cd6357560
commit 0affcff900
4 changed files with 13 additions and 3 deletions
+5 -1
View File
@@ -13,7 +13,7 @@ categories = ["command-line-utilities"]
features = ["alpm/docs-rs"]
[dependencies]
alpm = "2.2"
alpm = { version = "2.2", optional = true }
anyhow = { workspace = true }
clap = "4.1"
const_format = { version = "0.2", default-features = false }
@@ -27,3 +27,7 @@ serde_derive = "1.0"
serde = "1.0"
pacdef_macros = { path = "../pacdef_macros", version = "0.1" }
[features]
default = ["arch"]
arch = ["dep:alpm"]