Make cfg-if dependency optional
The cfg-if dependency is now only pulled in if pike is enabled.
@@ -30,7 +30,7 @@ license = "Apache-2.0"
[dependencies]
actix-web = { version = "3", optional = true }
base64 = { version = "0.10", optional = true }
-cfg-if = "0.1"
+cfg-if = { version = "0.1", optional = true }
chrono = "0.4"
diesel = { version = "1.0", features = ["chrono", "r2d2", "serde_json"], optional = true }
diesel_migrations = { version = "1.4", optional = true }
@@ -108,7 +108,7 @@ client-reqwest = ["client", "reqwest"]
location = ["pike", "schema"]
location-store-postgres = ["postgres"]
location-store-sqlite = ["sqlite"]
-pike = []
+pike = ["cfg-if"]
pike-rest-api = ["pike", "serde_json", "rest-api-resources"]
product-gdsn = [
"reqwest"
