optional redis

This commit is contained in:
Robin Appelman 2021-05-03 18:42:56 +02:00
commit d9d0c397ee
3 changed files with 24 additions and 3 deletions

View file

@ -9,7 +9,7 @@ repository = "https://github.com/icewind1991/nextcloud-config-parser"
documentation = "https://docs.rs/nextcloud-config-parser"
[dependencies]
redis = { version = "0.20" }
redis = { version = "0.20", optional = true }
thiserror = "1"
php-literal-parser = { version = "0.2", default-features = false }
sqlx = { version = "0.5", features = ["any", "mysql", "sqlite", "postgres"], optional = true }
@ -18,4 +18,5 @@ sqlx = { version = "0.5", features = ["any", "mysql", "sqlite", "postgres"], opt
sqlx = { version = "0.5", features = ["runtime-tokio-rustls", "any", "mysql", "sqlite", "postgres"] }
[features]
db-sqlx = ["sqlx"]
db-sqlx = ["sqlx"]
redis-connect = ["redis"]